#include <vector.hpp>
Public Member Functions | |
VectorEncapsulation (const size_t size) | |
VectorEncapsulation (const VectorEncapsulation< scalar, time > &other) | |
Copy constuctor. More... | |
VectorEncapsulation (const Encapsulation< time > &other) | |
VectorEncapsulation (VectorEncapsulation< scalar, time > &&other) | |
Move constructor. More... | |
VectorEncapsulation (Encapsulation< time > &&other) | |
virtual | ~VectorEncapsulation () |
virtual void | zero () override |
Zeroes out all values of this data structure. More... | |
virtual void | copy (shared_ptr< const Encapsulation< time >> x) override |
Copies values from other into this data structure. More... | |
virtual void | copy (shared_ptr< const VectorEncapsulation< scalar, time >> x) |
virtual void | saxpy (time a, shared_ptr< const Encapsulation< time >> x) override |
Provides basic mathematical operation \( y+=ax \). More... | |
virtual void | saxpy (time a, shared_ptr< const VectorEncapsulation< scalar, time >> x) |
virtual void | mat_apply (vector< shared_ptr< Encapsulation< time >>> dst, time a, Matrix< time > mat, vector< shared_ptr< Encapsulation< time >>> src, bool zero=true) override |
virtual void | mat_apply (vector< shared_ptr< VectorEncapsulation< scalar, time >>> dst, time a, Matrix< time > mat, vector< shared_ptr< VectorEncapsulation< scalar, time >>> src, bool zero=true) |
virtual time | norm0 () const override |
Maximum norm of contained elements. More... | |
![]() | |
virtual | ~Encapsulation () |
virtual void | post (ICommunicator *comm, int tag) |
virtual void | send (ICommunicator *comm, int tag, bool blocking) |
Send values stored in this data structure. More... | |
virtual void | recv (ICommunicator *comm, int tag, bool blocking) |
Receive values to store in this data structure. More... | |
virtual void | broadcast (ICommunicator *comm) |
Broadcasting this data structure to all processes in comm . More... | |
scalar | precision and numerical type of the data values |
time | precision of the time points; defaults to pfasst::time_precision |
Definition at line 27 of file vector.hpp.
pfasst::encap::VectorEncapsulation< scalar, time >::VectorEncapsulation | ( | const size_t | size | ) |
Definition at line 11 of file vector_impl.hpp.
References pfasst::encap::VectorEncapsulation< scalar, time >::zero().
pfasst::encap::VectorEncapsulation< scalar, time >::VectorEncapsulation | ( | const VectorEncapsulation< scalar, time > & | other | ) |
Copy constuctor.
Definition at line 18 of file vector_impl.hpp.
pfasst::encap::VectorEncapsulation< scalar, time >::VectorEncapsulation | ( | const Encapsulation< time > & | other | ) |
std::bad_cast | if other can not be transformed into pfasst::encap::VectorEncapsulation via dynamic_cast |
Definition at line 23 of file vector_impl.hpp.
pfasst::encap::VectorEncapsulation< scalar, time >::VectorEncapsulation | ( | VectorEncapsulation< scalar, time > && | other | ) |
Move constructor.
Definition at line 28 of file vector_impl.hpp.
pfasst::encap::VectorEncapsulation< scalar, time >::VectorEncapsulation | ( | Encapsulation< time > && | other | ) |
std::bad_cast | if other can not be transformed into pfasst::encap::VectorEncapsulation via dynamic_cast |
Definition at line 33 of file vector_impl.hpp.
|
virtual |
Definition at line 38 of file vector_impl.hpp.
References pfasst::mpi::check_mpi_error(), ML_CLOG, and MPI_Status_factory().
|
overridevirtual |
Copies values from other
into this data structure.
[in] | other | other data structure to copy data from |
NotImplementedYet | This function is required by Encapsulation |
Reimplemented from pfasst::encap::Encapsulation< time >.
Definition at line 60 of file vector_impl.hpp.
|
virtual |
Definition at line 69 of file vector_impl.hpp.
|
overridevirtual |
dst
or src
can not be transformed via dynamic_cast
into pfasst::encap::VectorEncapsulation std::abort is called. Reimplemented from pfasst::encap::Encapsulation< time >.
Definition at line 94 of file vector_impl.hpp.
|
virtual |
Definition at line 117 of file vector_impl.hpp.
|
overridevirtual |
Maximum norm of contained elements.
This uses std::max with custom comparison function.
Reimplemented from pfasst::encap::Encapsulation< time >.
Definition at line 140 of file vector_impl.hpp.
|
overridevirtual |
Provides basic mathematical operation \( y+=ax \).
This is the main mathematical operation applied by PFASST on the data structures. Here, \( a \) is a time point and \( x \) another data structure (usually of the same type) and \( y \) is this data structure.
[in] | a | time point to multiply |
[in] | x | another data structure to scale-add onto this one |
NotImplementedYet | This function is required by Encapsulation |
Reimplemented from pfasst::encap::Encapsulation< time >.
Definition at line 75 of file vector_impl.hpp.
|
virtual |
Definition at line 85 of file vector_impl.hpp.
References plot::data.
|
overridevirtual |
Zeroes out all values of this data structure.
NotImplementedYet | This function is required by Encapsulation |
Reimplemented from pfasst::encap::Encapsulation< time >.
Definition at line 54 of file vector_impl.hpp.
Referenced by pfasst::encap::VectorEncapsulation< scalar, time >::VectorEncapsulation().