42 #ifndef THYRA_DEFAULT_PRODUCT_MULTI_VECTOR_DECL_HPP
43 #define THYRA_DEFAULT_PRODUCT_MULTI_VECTOR_DECL_HPP
45 #include "Thyra_ProductMultiVectorBase.hpp"
46 #include "Thyra_MultiVectorDefaultBase.hpp"
47 #include "Teuchos_ConstNonconstObjectContainer.hpp"
54 template <
class Scalar>
class DefaultProductVectorSpace;
70 template<
class Scalar>
220 const Ordinal primary_global_offset
282 template<
class MultiVectorType>
288 void assertInitialized()
const;
290 void validateColIndex(
const int j)
const;
299 template<
class Scalar>
301 defaultProductMultiVector();
308 template<
class Scalar>
310 defaultProductMultiVector(
320 template<
class Scalar>
322 defaultProductMultiVector(
332 template<
class Scalar>
334 defaultProductMultiVector(
346 template<
class Scalar>
348 castOrCreateSingleBlockProductMultiVector(
360 template<
class Scalar>
362 nonconstCastOrCreateSingleBlockProductMultiVector(
372 #ifndef TEUCHOS_DEBUG
375 template<
class Scalar>
381 template<
class Scalar>
383 void DefaultProductMultiVector<Scalar>::validateColIndex(
const int )
const
387 #endif // TEUCHOS_DEBUG
393 #endif // THYRA_DEFAULT_PRODUCT_MULTI_VECTOR_DECL_HPP
Base interface for product multi-vectors.
virtual void updateImpl(Scalar alpha, const MultiVectorBase< Scalar > &mv)
EOpTransp
Enumeration for determining how a linear operator is applied. `*.
bool opSupportedImpl(EOpTransp M_trans) const
void acquireDetachedMultiVectorViewImpl(const Range1D &rowRng, const Range1D &colRng, RTOpPack::ConstSubMultiVectorView< Scalar > *sub_mv) const
RCP< VectorBase< Scalar > > nonconstColImpl(Ordinal j)
virtual void norms1Impl(const ArrayView< typename ScalarTraits< Scalar >::magnitudeType > &norms) const
virtual void dotsImpl(const MultiVectorBase< Scalar > &mv, const ArrayView< Scalar > &prods) const
RCP< const VectorSpaceBase< Scalar > > range() const
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
virtual void norms2Impl(const ArrayView< typename ScalarTraits< Scalar >::magnitudeType > &norms) const
Node subclass that uses a default MultiVectorBase implementation to provide default implementations f...
RCP< const MultiVectorBase< Scalar > > nonContigSubViewImpl(const ArrayView< const int > &cols) const
void releaseDetachedMultiVectorViewImpl(RTOpPack::ConstSubMultiVectorView< Scalar > *sub_mv) const
RCP< MultiVectorBase< Scalar > > getNonconstMultiVectorBlock(const int k)
bool blockIsConst(const int k) const
Teuchos::Ordinal Ordinal
Type for the dimension of a vector space. `*.
void acquireNonconstDetachedMultiVectorViewImpl(const Range1D &rowRng, const Range1D &colRng, RTOpPack::SubMultiVectorView< Scalar > *sub_mv)
Interface for a collection of column vectors called a multi-vector.
RCP< MultiVectorBase< Scalar > > nonconstContigSubViewImpl(const Range1D &colRng)
Concrete implementation of a product multi-vector.
virtual void linearCombinationImpl(const ArrayView< const Scalar > &alpha, const ArrayView< const Ptr< const MultiVectorBase< Scalar > > > &mv, const Scalar &beta)
virtual void assignMultiVecImpl(const MultiVectorBase< Scalar > &mv)
RCP< MultiVectorBase< Scalar > > clone_mv() const
void norms(const MultiVectorBase< Scalar > &V, const ArrayView< typename ScalarTraits< Scalar >::magnitudeType > &norms)
Column-wise multi-vector natural norm.
virtual void normsInfImpl(const ArrayView< typename ScalarTraits< Scalar >::magnitudeType > &norms) const
void mvMultiReductApplyOpImpl(const RTOpPack::RTOpT< Scalar > &primary_op, const ArrayView< const Ptr< const MultiVectorBase< Scalar > > > &multi_vecs, const ArrayView< const Ptr< MultiVectorBase< Scalar > > > &targ_multi_vecs, const ArrayView< const Ptr< RTOpPack::ReductTarget > > &reduct_objs, const Ordinal primary_global_offset) const
std::string description() const
RCP< const VectorSpaceBase< Scalar > > domain() const
void commitNonconstDetachedMultiVectorViewImpl(RTOpPack::SubMultiVectorView< Scalar > *sub_mv)
void initialize(const RCP< const DefaultProductVectorSpace< Scalar > > &productSpace, const int numMembers)
void uninitialize()
Uninitialize.
RCP< const MultiVectorBase< Scalar > > getMultiVectorBlock(const int k) const
void applyImpl(const EOpTransp M_trans, const MultiVectorBase< Scalar > &X, const Ptr< MultiVectorBase< Scalar > > &Y, const Scalar alpha, const Scalar beta) const
RCP< const ProductVectorSpaceBase< Scalar > > productSpace() const
virtual void assignImpl(Scalar alpha)
RCP< MultiVectorBase< Scalar > > nonconstNonContigSubViewImpl(const ArrayView< const int > &cols)
DefaultProductMultiVector()
Construct to uninitialized.
RCP< const MultiVectorBase< Scalar > > contigSubViewImpl(const Range1D &colRng) const
virtual void scaleImpl(Scalar alpha)
RCP< const VectorBase< Scalar > > colImpl(Ordinal j) const