10#ifndef THYRA_DEFAULT_PRODUCT_VECTOR_SPACE_DECL_HPP 
   11#define THYRA_DEFAULT_PRODUCT_VECTOR_SPACE_DECL_HPP 
   13#include "Thyra_ProductVectorSpaceBase.hpp" 
   14#include "Thyra_VectorSpaceDefaultBase.hpp" 
   15#include "Teuchos_implicit_cast.hpp" 
  103template<
class Scalar>
 
  349  void assertInitialized() 
const;
 
 
  358template<
class Scalar>
 
  371template<
class Scalar>
 
  387template<
class Scalar>
 
  396  for ( 
int i = 0; i < numBlocks; ++i )
 
  398  return productVectorSpace<Scalar>(vecSpaceBlocks());
 
 
  406template<
class Scalar>
 
  410  return ( dim_ ? &(*vecSpaces_)[0] : NULL );
 
 
  414template<
class Scalar>
 
  418  return ( dim_ ? &(*vecSpacesOffsets_)[0] : NULL );
 
 
  422template<
class Scalar>
 
  429template<
class Scalar>
 
void push_back(const value_type &x)
 
DefaultProductVectorSpace()
Default construct to uninitialized.
 
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
Prints the details about the constituent vector spaces.
 
RCP< MultiVectorBase< Scalar > > createMembers(int numMembers) const
Returns a DefaultProductMultiVector object.
 
RCP< const VectorSpaceBase< Scalar > > getBlock(const int k) const
 
RCP< const VectorSpaceBase< Scalar > > clone() const
Clones the object as promised.
 
bool hasInCoreView(const Range1D &rng, const EViewType viewType, const EStrideType strideType) const
Returns true if all of the constituent vector spaces return true.
 
void getVecSpcPoss(Ordinal i, int *kth_vector_space, Ordinal *kth_global_offset) const
Get the position of the vector space object and its offset into a composite vector that owns the ith ...
 
std::string description() const
Prints just the name DefaultProductVectorSpace along with the overall dimension and the number of blo...
 
RCP< VectorBase< Scalar > > createMember() const
Returns a DefaultProductVector object.
 
virtual void initialize(const ArrayView< const RCP< const VectorSpaceBase< Scalar > > > &vecSpaces)
Initialize with a list of constituent vector spaces.
 
virtual void uninitialize(const ArrayView< RCP< const VectorSpaceBase< Scalar > > > &vecSpaces=Teuchos::null)
Uninitialize.
 
virtual const RCP< const VectorSpaceBase< Scalar > > * vecSpaces() const
Returns a pointer to an array (of length this->numBlocks()) to the constituent vector spaces.
 
RCP< DefaultProductVectorSpace< Scalar > > productVectorSpace(const RCP< const VectorSpaceBase< Scalar > > &vecSpace, const int numBlocks)
Nonmember constructor that duplicates a block vector space numBlock times to form a product space.
 
RCP< DefaultProductVectorSpace< Scalar > > productVectorSpace()
Nonmember constructor that constructs to uninitialized.
 
RCP< DefaultProductVectorSpace< Scalar > > productVectorSpace(const ArrayView< RCP< const VectorSpaceBase< Scalar > > > &vecSpaces)
Nonmember constructor that takes an array of vector spaces.
 
RCP< const VectorSpaceFactoryBase< Scalar > > smallVecSpcFcty() const
Returns getBlock(0)->smallVecSpcFcty().
 
bool isCompatible(const VectorSpaceBase< Scalar > &vecSpc) const
Returns true only if also a product vector space and all constituent vectors are compatible.
 
Ordinal dim() const
Returns the summation of the constituent vector spaces.
 
void scalarProdsImpl(const MultiVectorBase< Scalar > &X, const MultiVectorBase< Scalar > &Y, const ArrayView< Scalar > &scalarProds) const
Returns the sum of the scalar products of each of the columns of the constituent multi-vectors.
 
Scalar scalarProd(const VectorBase< Scalar > &x, const VectorBase< Scalar > &y) const
Returns the sum of the scalar products of the constituent vectors.
 
virtual const Ordinal * vecSpacesOffsets() const
Returns a pointer to an array (of length this->numBlocks()+1) of offset into each constituent vector ...
 
bool hasBeenCloned() const
Return if this vector space was cloned.
 
Interface for a collection of column vectors called a multi-vector.
 
Abstract interface for finite-dimensional dense vectors.
 
Abstract interface for objects that represent a space for vectors.
 
void scalarProds(const MultiVectorBase< Scalar > &X, const MultiVectorBase< Scalar > &Y, const ArrayView< Scalar > &scalarProds_out) const
Return the scalar product of each column in two multi-vectors in the vector space.
 
Node VectorSpaceBase subclass that provides default implementations for many functions using a defaul...
 
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)
 
EStrideType
Determine if data is unit stride or non-unit stride.
 
EViewType
Determines if a view is a direct view of data or a detached copy of data.
 
Teuchos::Ordinal Ordinal
Type for the dimension of a vector space. `*.
 
TypeTo implicit_cast(const TypeFrom &t)
 
T_To & dyn_cast(T_From &from)
 
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)