|
| Vector ()=default |
|
| Vector (const Vector< Number > &V) |
|
| Vector (const size_type n) |
|
template<typename InputIterator > |
| Vector (const InputIterator first, const InputIterator last) |
|
virtual void | reinit (const size_type size, const bool omit_zeroing_entries=false) override |
|
template<typename Number2 > |
void | reinit (const ReadWriteVector< Number2 > &in_vector, const bool omit_zeroing_entries=false) |
|
virtual void | reinit (const IndexSet &locally_stored_indices, const bool omit_zeroing_entries=false) override |
|
virtual void | reinit (const VectorSpaceVector< Number > &V, const bool omit_zeroing_entries=false) override |
|
bool | has_ghost_elements () const |
|
Vector< Number > & | operator= (const Vector< Number > &in_vector) |
|
template<typename Number2 > |
Vector< Number > & | operator= (const Vector< Number2 > &in_vector) |
|
virtual Vector< Number > & | operator= (const Number s) override |
|
virtual Vector< Number > & | operator*= (const Number factor) override |
|
virtual Vector< Number > & | operator/= (const Number factor) override |
|
virtual Vector< Number > & | operator+= (const VectorSpaceVector< Number > &V) override |
|
virtual Vector< Number > & | operator-= (const VectorSpaceVector< Number > &V) override |
|
virtual Number | operator* (const VectorSpaceVector< Number > &V) const override |
|
virtual void | import (const ReadWriteVector< Number > &V, VectorOperation::values operation, std::shared_ptr< const CommunicationPatternBase > communication_pattern=std::shared_ptr< const CommunicationPatternBase >()) override |
|
virtual void | add (const Number a) override |
|
virtual void | add (const Number a, const VectorSpaceVector< Number > &V) override |
|
virtual void | add (const Number a, const VectorSpaceVector< Number > &V, const Number b, const VectorSpaceVector< Number > &W) override |
|
virtual void | sadd (const Number s, const Number a, const VectorSpaceVector< Number > &V) override |
|
virtual void | scale (const VectorSpaceVector< Number > &scaling_factors) override |
|
virtual void | equ (const Number a, const VectorSpaceVector< Number > &V) override |
|
virtual bool | all_zero () const override |
|
virtual value_type | mean_value () const override |
|
virtual VectorSpaceVector< Number >::real_type | l1_norm () const override |
|
virtual VectorSpaceVector< Number >::real_type | l2_norm () const override |
|
virtual VectorSpaceVector< Number >::real_type | linfty_norm () const override |
|
virtual Number | add_and_dot (const Number a, const VectorSpaceVector< Number > &V, const VectorSpaceVector< Number > &W) override |
|
virtual size_type | size () const override |
|
virtual ::IndexSet | locally_owned_elements () const override |
|
virtual void | print (std::ostream &out, const unsigned int precision=3, const bool scientific=true, const bool across=true) const override |
|
void | print_as_numpy_array (std::ostream &out, const unsigned int precision=9) const |
|
void | block_write (std::ostream &out) const |
|
void | block_read (std::istream &in) |
|
virtual std::size_t | memory_consumption () const override |
|
| ReadWriteVector () |
|
| ReadWriteVector (const ReadWriteVector< Number > &in_vector) |
|
| ReadWriteVector (const size_type size) |
|
| ReadWriteVector (const IndexSet &locally_stored_indices) |
|
| ~ReadWriteVector () override=default |
|
template<typename Number2 > |
void | reinit (const ReadWriteVector< Number2 > &in_vector, const bool omit_zeroing_entries=false) |
|
void | reinit (const TrilinosWrappers::MPI::Vector &trilinos_vec) |
|
template<typename Functor > |
void | apply (const Functor &func) |
|
void | swap (ReadWriteVector< Number > &v) |
|
ReadWriteVector< Number > & | operator= (const ReadWriteVector< Number > &in_vector) |
|
template<typename Number2 > |
ReadWriteVector< Number > & | operator= (const ReadWriteVector< Number2 > &in_vector) |
|
ReadWriteVector< Number > & | operator= (const Number s) |
|
template<typename MemorySpace > |
void | import (const distributed::Vector< Number, MemorySpace > &vec, VectorOperation::values operation, const std::shared_ptr< const CommunicationPatternBase > &communication_pattern=std::shared_ptr< const CommunicationPatternBase >()) |
|
void | import (const PETScWrappers::MPI::Vector &petsc_vec, VectorOperation::values operation, const std::shared_ptr< const CommunicationPatternBase > &communication_pattern=std::shared_ptr< const CommunicationPatternBase >()) |
|
void | import (const TrilinosWrappers::MPI::Vector &trilinos_vec, VectorOperation::values operation, const std::shared_ptr< const CommunicationPatternBase > &communication_pattern=std::shared_ptr< const CommunicationPatternBase >()) |
|
void | import (const TpetraWrappers::Vector< Number > &tpetra_vec, VectorOperation::values operation, const std::shared_ptr< const CommunicationPatternBase > &communication_pattern=std::shared_ptr< const CommunicationPatternBase >()) |
|
void | import (const EpetraWrappers::Vector &epetra_vec, VectorOperation::values operation, const std::shared_ptr< const CommunicationPatternBase > &communication_pattern=std::shared_ptr< const CommunicationPatternBase >()) |
|
void | import (const CUDAWrappers::Vector< Number > &cuda_vec, VectorOperation::values operation, const std::shared_ptr< const CommunicationPatternBase > &communication_pattern=std::shared_ptr< const CommunicationPatternBase >()) |
|
size_type | size () const |
|
size_type | n_elements () const |
|
const IndexSet & | get_stored_elements () const |
|
iterator | begin () |
|
const_iterator | begin () const |
|
iterator | end () |
|
const_iterator | end () const |
|
Number | operator() (const size_type global_index) const |
|
Number & | operator() (const size_type global_index) |
|
Number | operator[] (const size_type global_index) const |
|
Number & | operator[] (const size_type global_index) |
|
template<typename Number2 > |
void | extract_subvector_to (const std::vector< size_type > &indices, std::vector< Number2 > &values) const |
|
template<typename ForwardIterator , typename OutputIterator > |
void | extract_subvector_to (ForwardIterator indices_begin, const ForwardIterator indices_end, OutputIterator values_begin) const |
|
Number | local_element (const size_type local_index) const |
|
Number & | local_element (const size_type local_index) |
|
template<typename Number2 > |
void | add (const std::vector< size_type > &indices, const std::vector< Number2 > &values) |
|
template<typename Number2 > |
void | add (const std::vector< size_type > &indices, const ReadWriteVector< Number2 > &values) |
|
template<typename Number2 > |
void | add (const size_type n_elements, const size_type *indices, const Number2 *values) |
|
void | print (std::ostream &out, const unsigned int precision=3, const bool scientific=true) const |
|
std::size_t | memory_consumption () const |
|
| Subscriptor () |
|
| Subscriptor (const Subscriptor &) |
|
| Subscriptor (Subscriptor &&) noexcept |
|
virtual | ~Subscriptor () |
|
Subscriptor & | operator= (const Subscriptor &) |
|
Subscriptor & | operator= (Subscriptor &&) noexcept |
|
void | subscribe (std::atomic< bool > *const validity, const std::string &identifier="") const |
|
void | unsubscribe (std::atomic< bool > *const validity, const std::string &identifier="") const |
|
unsigned int | n_subscriptions () const |
|
template<typename StreamType > |
void | list_subscribers (StreamType &stream) const |
|
void | list_subscribers () const |
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
virtual void | compress (VectorOperation::values) |
|
virtual | ~VectorSpaceVector ()=default |
|
template<typename Number>
class LinearAlgebra::Vector< Number >
Numerical vector of data. This class derives from both LinearAlgebra::ReadWriteVector and LinearAlgebra::VectorSpaceVector. As opposed to the array of the C++ standard library, this class implements an element of a vector space suitable for numerical computations.
- Author
- Bruno Turcksin, 2015.
Definition at line 79 of file la_vector.h.