A MultiVectorOperator is a linear operator whose rows or columns are represented as a multivector. More...
Public Member Functions | |
| MultiVectorOperator (const Teuchos::Array< Vector< Scalar > > &cols, const VectorSpace< Scalar > &domain) | |
| Construct from an array of vectors and a specifier for the domain space. | |
| virtual | ~MultiVectorOperator () |
| Virtual dtor. | |
| virtual void | generalApply (const Thyra::EOpTransp M_trans, const Thyra::VectorBase< Scalar > &x, Thyra::VectorBase< Scalar > *y, const Scalar alpha=1.0, const Scalar beta=0.0) const |
| Apply does an element-by-element multiply between the input vector, x, and the diagonal values. | |
| RCP< const Thyra::VectorSpaceBase< Scalar > > | domain () const |
| Return the domain of the operator. | |
| RCP< const Thyra::VectorSpaceBase< Scalar > > | range () const |
| Return the range of the operator. | |
| void | getRow (const int &k, Teuchos::Array< int > &indices, Teuchos::Array< Scalar > &values) const |
| Return the kth row. | |
Private Attributes | |
| Teuchos::Array< Vector< Scalar > > | cols_ |
| VectorSpace< Scalar > | domain_ |
| VectorSpace< Scalar > | range_ |
Related Functions | |
(Note that these are not member functions.) | |
| template<class Scalar > | |
| LinearOperator< Scalar > | multiVectorOperator (const Teuchos::Array< Vector< Scalar > > &cols, const VectorSpace< Scalar > &domain) |
A MultiVectorOperator is a linear operator whose rows or columns are represented as a multivector.
Definition at line 47 of file TSFMultiVectorOperatorDecl.hpp.
| TSFExtended::MultiVectorOperator< Scalar >::MultiVectorOperator | ( | const Teuchos::Array< Vector< Scalar > > & | cols, |
| const VectorSpace< Scalar > & | domain | ||
| ) | [inline] |
Construct from an array of vectors and a specifier for the domain space.
Definition at line 52 of file TSFMultiVectorOperatorImpl.hpp.
| virtual TSFExtended::MultiVectorOperator< Scalar >::~MultiVectorOperator | ( | ) | [inline, virtual] |
Virtual dtor.
Definition at line 61 of file TSFMultiVectorOperatorDecl.hpp.
| RCP< const Thyra::VectorSpaceBase< Scalar > > TSFExtended::MultiVectorOperator< Scalar >::domain | ( | ) | const [inline] |
Return the domain of the operator.
Definition at line 120 of file TSFMultiVectorOperatorImpl.hpp.
| void TSFExtended::MultiVectorOperator< Scalar >::generalApply | ( | const Thyra::EOpTransp | M_trans, |
| const Thyra::VectorBase< Scalar > & | x, | ||
| Thyra::VectorBase< Scalar > * | y, | ||
| const Scalar | alpha = 1.0, |
||
| const Scalar | beta = 0.0 |
||
| ) | const [inline, virtual] |
Apply does an element-by-element multiply between the input vector, x, and the diagonal values.
Implements TSFExtended::OpWithBackwardsCompatibleApply< Scalar >.
Definition at line 75 of file TSFMultiVectorOperatorImpl.hpp.
References TSFExtended::Vector< Scalar >::addToElement(), TSFExtended::Vector< Scalar >::dot(), TSFExtended::Vector< Scalar >::getElement(), TSFExtended::Vector< Scalar >::scale(), TSFExtended::Vector< Scalar >::update(), and TSFExtended::Vector< Scalar >::zero().
| void TSFExtended::MultiVectorOperator< Scalar >::getRow | ( | const int & | k, |
| Teuchos::Array< int > & | indices, | ||
| Teuchos::Array< Scalar > & | values | ||
| ) | const [inline, virtual] |
Return the kth row.
Implements TSFExtended::RowAccessibleOp< Scalar >.
Definition at line 138 of file TSFMultiVectorOperatorImpl.hpp.
| RCP< const Thyra::VectorSpaceBase< Scalar > > TSFExtended::MultiVectorOperator< Scalar >::range | ( | ) | const [inline] |
Return the range of the operator.
Definition at line 130 of file TSFMultiVectorOperatorImpl.hpp.
| LinearOperator< Scalar > multiVectorOperator | ( | const Teuchos::Array< Vector< Scalar > > & | cols, |
| const VectorSpace< Scalar > & | domain | ||
| ) | [related] |
Definition at line 154 of file TSFMultiVectorOperatorImpl.hpp.
Teuchos::Array<Vector<Scalar> > TSFExtended::MultiVectorOperator< Scalar >::cols_ [private] |
Definition at line 93 of file TSFMultiVectorOperatorDecl.hpp.
VectorSpace<Scalar> TSFExtended::MultiVectorOperator< Scalar >::domain_ [private] |
Definition at line 94 of file TSFMultiVectorOperatorDecl.hpp.
VectorSpace<Scalar> TSFExtended::MultiVectorOperator< Scalar >::range_ [private] |
Definition at line 95 of file TSFMultiVectorOperatorDecl.hpp.