10 #ifndef THYRA_DEFAULT_PRODUCT_MULTI_VECTOR_DECL_HPP
11 #define THYRA_DEFAULT_PRODUCT_MULTI_VECTOR_DECL_HPP
13 #include "Thyra_ProductMultiVectorBase.hpp"
14 #include "Thyra_MultiVectorDefaultBase.hpp"
15 #include "Teuchos_ConstNonconstObjectContainer.hpp"
22 template <
class Scalar>
class DefaultProductVectorSpace;
38 template<
class Scalar>
188 const Ordinal primary_global_offset
250 template<
class MultiVectorType>
256 void assertInitialized()
const;
258 void validateColIndex(
const int j)
const;
267 template<
class Scalar>
269 defaultProductMultiVector();
276 template<
class Scalar>
278 defaultProductMultiVector(
288 template<
class Scalar>
290 defaultProductMultiVector(
300 template<
class Scalar>
302 defaultProductMultiVector(
314 template<
class Scalar>
316 castOrCreateSingleBlockProductMultiVector(
328 template<
class Scalar>
330 nonconstCastOrCreateSingleBlockProductMultiVector(
340 #ifndef TEUCHOS_DEBUG
343 template<
class Scalar>
349 template<
class Scalar>
351 void DefaultProductMultiVector<Scalar>::validateColIndex(
const int )
const
355 #endif // TEUCHOS_DEBUG
361 #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