10 #ifndef THYRA_DEFAULT_SPMD_VECTOR_DECL_HPP
11 #define THYRA_DEFAULT_SPMD_VECTOR_DECL_HPP
14 #include "Thyra_SpmdVectorDefaultBase_decl.hpp"
36 template<
class Scalar>
108 const Scalar*
getPtr()
const;
147 template<
class Scalar>
156 template<
class Scalar>
165 template<
class Scalar>
169 return localValues_.get();
173 template<
class Scalar>
177 return localValues_.get();
181 template<
class Scalar>
192 #endif // THYRA_DEFAULT_SPMD_VECTOR_DECL_HPP
RCP< const SpmdVectorSpaceBase< Scalar > > spmdSpaceImpl() const
void uninitialize(RCP< const SpmdVectorSpaceBase< Scalar > > *spmdSpace=NULL, ArrayRCP< Scalar > *localValues=NULL, Ordinal *stride=NULL)
Set to an uninitialized state.
Base class for SPMD vectors that can provide views of contiguous elements in a process.
void initialize(const RCP< const SpmdVectorSpaceBase< Scalar > > &spmdSpace, const ArrayRCP< Scalar > &localValues, const Ordinal stride)
Initialize.
void getNonconstLocalVectorDataImpl(const Ptr< ArrayRCP< Scalar > > &localValues)
ArrayRCP< Scalar > getRCPtr()
Ordinal getStride() const
Teuchos::Ordinal Ordinal
Type for the dimension of a vector space. `*.
void getLocalVectorDataImpl(const Ptr< ArrayRCP< const Scalar > > &localValues) const
Efficient concrete implementation subclass for SPMD vectors.
DefaultSpmdVector()
Construct to uninitialized.
RCP< const SpmdVectorSpaceBase< Scalar > > spmdSpace() const
Returns the SPMD vector space object for the range of *this multi-vector.
Base abstract VectorSpaceBase class for all SPMD-based vector spaces.