#include <Thyra_DefaultSpmdVectorDecl.hpp>
Inheritance diagram for Thyra::DefaultSpmdVector< Scalar >:

Constructors/initializers | |
| DefaultSpmdVector () | |
| Construct to uninitialized. | |
| DefaultSpmdVector (const RCP< const SpmdVectorSpaceBase< Scalar > > &spmdSpace, const ArrayRCP< Scalar > &localValues, const Index stride) | |
Calls initialize(). | |
| void | initialize (const RCP< const SpmdVectorSpaceBase< Scalar > > &spmdSpace, const ArrayRCP< Scalar > &localValues, const Index stride) |
| Initialize. | |
| void | uninitialize (RCP< const SpmdVectorSpaceBase< Scalar > > *spmdSpace=NULL, ArrayRCP< Scalar > *localValues=NULL, Index *stride=NULL) |
| Set to an uninitialized state. | |
Accessors (inlined for minimal overhead) | |
| ArrayRCP< Scalar > | getRCPtr () |
| | |
| ArrayRCP< const Scalar > | getRCPtr () const |
| | |
| Scalar * | getPtr () |
| | |
| const Scalar * | getPtr () const |
| | |
| Index | getStride () const |
| | |
Overridden from SpmdVectorBase | |
| RCP< const SpmdVectorSpaceBase< Scalar > > | spmdSpace () const |
| | |
| void | getLocalData (Scalar **localValues, Index *stride) |
| | |
| void | commitLocalData (Scalar *localValues) |
| | |
| void | getLocalData (const Scalar **localValues, Index *stride) const |
| | |
| void | freeLocalData (const Scalar *localValues) const |
| | |
This subclass provides a very efficient and very general concrete implementation of a Thyra::VectorBase object for any SPMD platform.
Objects of this type generally should not be constructed directly by a client but instead by using the concrete vector space subclass Thyra::DefaultSpmdVectorSpace and using the function Thyra::createMember().
The storage type can be anything since an ArrayRCP is used to pass in the local values pointer into the constructor and initialize().
Definition at line 53 of file Thyra_DefaultSpmdVectorDecl.hpp.
| Thyra::DefaultSpmdVector< Scalar >::DefaultSpmdVector | ( | ) |
| Thyra::DefaultSpmdVector< Scalar >::DefaultSpmdVector | ( | const RCP< const SpmdVectorSpaceBase< Scalar > > & | spmdSpace, | |
| const ArrayRCP< Scalar > & | localValues, | |||
| const Index | stride | |||
| ) |
| void Thyra::DefaultSpmdVector< Scalar >::initialize | ( | const RCP< const SpmdVectorSpaceBase< Scalar > > & | spmdSpace, | |
| const ArrayRCP< Scalar > & | localValues, | |||
| const Index | stride | |||
| ) |
Initialize.
| spmdSpace | [in] Smart pointer to SpmdVectorSpaceBase object that defines the data distribution for spmdSpace() and space(). | |
| localValues | [in] Smart pointer to beginning of local strided vector data. This array must be at least of dimension mpiRangeSpace->localDim()*stride and (&*localValues)[ i*stride ] gives the local value of the zero-based entry (i) where i=0...spmdSpace()->localSubDim()-1. | |
| stride | [in] Stride between local vector elements. |
spmdSpace.get()!=NULL localValues.get()!=NULL stride != 0 Postconditions:
this->getRCptr().get() == localValues.get() this->getPtr() == &*localValues this->getStride() == stride Definition at line 56 of file Thyra_DefaultSpmdVector.hpp.
| void Thyra::DefaultSpmdVector< Scalar >::uninitialize | ( | RCP< const SpmdVectorSpaceBase< Scalar > > * | spmdSpace = NULL, |
|
| ArrayRCP< Scalar > * | localValues = NULL, |
|||
| Index * | stride = NULL | |||
| ) |
Set to an uninitialized state.
Postconditions:
this->spmdSpace().get() == NULL. Definition at line 74 of file Thyra_DefaultSpmdVector.hpp.
| ArrayRCP< Scalar > Thyra::DefaultSpmdVector< Scalar >::getRCPtr | ( | ) | [inline] |
| ArrayRCP< const Scalar > Thyra::DefaultSpmdVector< Scalar >::getRCPtr | ( | ) | const [inline] |
| Scalar * Thyra::DefaultSpmdVector< Scalar >::getPtr | ( | ) | [inline] |
| const Scalar * Thyra::DefaultSpmdVector< Scalar >::getPtr | ( | ) | const [inline] |
| Index Thyra::DefaultSpmdVector< Scalar >::getStride | ( | ) | const [inline] |
| RCP< const SpmdVectorSpaceBase< Scalar > > Thyra::DefaultSpmdVector< Scalar >::spmdSpace | ( | ) | const [virtual] |
Implements Thyra::SpmdVectorBase< Scalar >.
Definition at line 95 of file Thyra_DefaultSpmdVector.hpp.
| void Thyra::DefaultSpmdVector< Scalar >::getLocalData | ( | Scalar ** | localValues, | |
| Index * | stride | |||
| ) | [virtual] |
Implements Thyra::SpmdVectorBase< Scalar >.
Definition at line 101 of file Thyra_DefaultSpmdVector.hpp.
| void Thyra::DefaultSpmdVector< Scalar >::commitLocalData | ( | Scalar * | localValues | ) | [virtual] |
Implements Thyra::SpmdVectorBase< Scalar >.
Definition at line 114 of file Thyra_DefaultSpmdVector.hpp.
| void Thyra::DefaultSpmdVector< Scalar >::getLocalData | ( | const Scalar ** | localValues, | |
| Index * | stride | |||
| ) | const [virtual] |
Reimplemented from Thyra::SpmdVectorBase< Scalar >.
Definition at line 123 of file Thyra_DefaultSpmdVector.hpp.
| void Thyra::DefaultSpmdVector< Scalar >::freeLocalData | ( | const Scalar * | localValues | ) | const [virtual] |
Reimplemented from Thyra::SpmdVectorBase< Scalar >.
Definition at line 136 of file Thyra_DefaultSpmdVector.hpp.
1.4.7