10 #include "Thyra_MultiVectorBase.hpp"
11 #include "Thyra_AssertOp.hpp"
13 #ifndef THYRA_EXPLICIT_MULTI_VECTOR_VIEW_HPP
14 #define THYRA_EXPLICIT_MULTI_VECTOR_VIEW_HPP
24 template<
class Scalar>
32 : mv_(mv) { mv_->acquireDetachedView(rowRng, colRng, &smv_); }
38 : mv_(rcpFromRef(mv)) { mv_->acquireDetachedView(rowRng, colRng, &smv_); }
52 const Scalar*
values()
const {
return smv_.values().get(); }
75 template<
class Scalar>
83 : mv_(mv) { mv_->acquireDetachedView(rowRng, colRng, &smv_); }
89 : mv_(rcpFromRef(mv)) { mv_->acquireDetachedView(rowRng,colRng,&smv_); }
103 Scalar*
values()
const {
return smv_.values().get(); }
125 template<
class Scalar>
142 const int m = dMvIn.subDim();
143 const int n = dMvIn.numSubCols();
144 for (
int j = 0; j < n; ++j ) {
145 for (
int i = 0; i < m; ++i ) {
146 dMvTransOut(j,i) = ST::conjugate(dMvIn(i,j));
155 #endif // THYRA_EXPLICIT_MULTI_VECTOR_VIEW_HPP
const Scalar & operator()(Ordinal i, Ordinal j) const
const Scalar * values() const
#define THYRA_ASSERT_VEC_SPACES(FUNC_NAME, VS1, VS2)
This is a very useful macro that should be used to validate that two vector spaces are compatible...
Create an explicit non-mutable (const) view of a MultiVectorBase object.
virtual RCP< const VectorSpaceBase< Scalar > > range() const =0
Return a smart pointer for the range space for this operator.
const RTOpPack::ConstSubMultiVectorView< Scalar > & smv() const
Ordinal colOffset() const
Ordinal numSubCols() const
Create an explicit mutable (non-const) view of a MultiVectorBase object.
Ordinal leadingDim() const
ConstDetachedMultiVectorView(const MultiVectorBase< Scalar > &mv, const Range1D &rowRng=Range1D(), const Range1D &colRng=Range1D())
Teuchos::Ordinal Ordinal
Type for the dimension of a vector space. `*.
Interface for a collection of column vectors called a multi-vector.
const RTOpPack::SubMultiVectorView< Scalar > & smv() const
~ConstDetachedMultiVectorView()
Ordinal numSubCols() const
void doExplicitMultiVectorAdjoint(const MultiVectorBase< Scalar > &mvIn, MultiVectorBase< Scalar > *mvTransOut)
Do an explicit multi-vector adjoint.
DetachedMultiVectorView(MultiVectorBase< Scalar > &mv, const Range1D &rowRng=Range1D(), const Range1D &colRng=Range1D())
ConstDetachedMultiVectorView(const RCP< const MultiVectorBase< Scalar > > &mv, const Range1D &rowRng=Range1D(), const Range1D &colRng=Range1D())
Ordinal leadingDim() const
virtual RCP< const VectorSpaceBase< Scalar > > domain() const =0
Return a smart pointer for the domain space for this operator.
Ordinal colOffset() const
~DetachedMultiVectorView()
Ordinal globalOffset() const
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)
Ordinal globalOffset() const
DetachedMultiVectorView(const RCP< MultiVectorBase< Scalar > > &mv, const Range1D &rowRng=Range1D(), const Range1D &colRng=Range1D())
Scalar & operator()(Ordinal i, Ordinal j)