#include <BelosThyraAdapter.hpp>
Creation methods | |
| Teuchos::RCP< TMVB > | Clone (const TMVB &mv, const int numvecs) |
Creates a new empty MultiVectorBase containing numvecs columns. | |
| Teuchos::RCP< TMVB > | CloneCopy (const TMVB &mv) |
Creates a new MultiVectorBase and copies contents of mv into the new std::vector (deep copy). | |
| Teuchos::RCP< TMVB > | CloneCopy (const TMVB &mv, const std::vector< int > &index) |
Creates a new MultiVectorBase and copies the selected contents of mv into the new std::vector (deep copy). | |
| Teuchos::RCP< TMVB > | CloneView (TMVB &mv, const std::vector< int > &index) |
Creates a new MultiVectorBase that shares the selected contents of mv (shallow copy). | |
| Teuchos::RCP< const TMVB > | CloneView (const TMVB &mv, const std::vector< int > &index) |
Creates a new const MultiVectorBase that shares the selected contents of mv (shallow copy). | |
Attribute methods | |
| int | GetVecLength (const TMVB &mv) |
Obtain the std::vector length of mv. | |
| int | GetNumberVecs (const TMVB &mv) |
Obtain the number of vectors in mv. | |
Update methods | |
| void | MvTimesMatAddMv (const ScalarType alpha, const TMVB &A, const Teuchos::SerialDenseMatrix< int, ScalarType > &B, const ScalarType beta, TMVB &mv) |
Update mv with . | |
| void | MvAddMv (const ScalarType alpha, const TMVB &A, const ScalarType beta, const TMVB &B, TMVB &mv) |
Replace mv with . | |
| void | MvScale (TMVB &mv, const ScalarType alpha) |
Scale each element of the vectors in *this with alpha. | |
| void | MvScale (TMVB &mv, const std::vector< ScalarType > &alpha) |
Scale each element of the i-th vector in *this with alpha[i]. | |
| void | MvTransMv (const ScalarType alpha, const TMVB &A, const TMVB &mv, Teuchos::SerialDenseMatrix< int, ScalarType > &B) |
Compute a dense matrix B through the matrix-matrix multiply . | |
| void | MvDot (const TMVB &mv, const TMVB &A, std::vector< ScalarType > &b) |
Compute a std::vector b where the components are the individual dot-products of the i-th columns of A and mv, i.e. . | |
Norm method | |
| void | MvNorm (const TMVB &mv, std::vector< magType > &normvec, NormType type=TwoNorm) |
Compute the 2-norm of each individual std::vector of mv. Upon return, normvec[i] holds the value of , the i-th column of mv. | |
Initialization methods | |
| void | SetBlock (const TMVB &A, const std::vector< int > &index, TMVB &mv) |
Copy the vectors in A to a set of vectors in mv indicated by the indices given in index. | |
| void | MvRandom (TMVB &mv) |
Replace the vectors in mv with random vectors. | |
| void | MvInit (TMVB &mv, ScalarType alpha=Teuchos::ScalarTraits< ScalarType >::zero()) |
Replace each element of the vectors in mv with alpha. | |
Print method | |
| void | MvPrint (const TMVB &mv, std::ostream &os) |
Print the mv multi-std::vector to the os output stream. | |
This interface will ensure that any implementation of MultiVectorBaseClass will be accepted by the Belos templated solvers.
Definition at line 61 of file BelosThyraAdapter.hpp.
|
||||||||||||||||
|
Creates a new empty MultiVectorBase containing
Definition at line 76 of file BelosThyraAdapter.hpp. |
|
||||||||||
|
Creates a new MultiVectorBase and copies contents of
Definition at line 86 of file BelosThyraAdapter.hpp. |
|
||||||||||||||||
|
Creates a new MultiVectorBase and copies the selected contents of
The copied vectors from
Definition at line 101 of file BelosThyraAdapter.hpp. |
|
||||||||||||||||
|
Creates a new MultiVectorBase that shares the selected contents of
The index of the
Definition at line 118 of file BelosThyraAdapter.hpp. |
|
||||||||||||||||
|
Creates a new const MultiVectorBase that shares the selected contents of
The index of the
Definition at line 158 of file BelosThyraAdapter.hpp. |
|
||||||||||
|
Obtain the std::vector length of
Definition at line 199 of file BelosThyraAdapter.hpp. |
|
||||||||||
|
Obtain the number of vectors in
Definition at line 203 of file BelosThyraAdapter.hpp. |
|
||||||||||||||||||||||||||||
|
Update
Definition at line 213 of file BelosThyraAdapter.hpp. |
|
||||||||||||||||||||||||||||
|
Replace
Definition at line 231 of file BelosThyraAdapter.hpp. |
|
||||||||||||||||
|
Scale each element of the vectors in
Definition at line 247 of file BelosThyraAdapter.hpp. |
|
||||||||||||||||
|
Scale each element of the
Definition at line 252 of file BelosThyraAdapter.hpp. |
|
||||||||||||||||||||||||
|
Compute a dense matrix
Definition at line 261 of file BelosThyraAdapter.hpp. |
|
||||||||||||||||||||
|
Compute a std::vector
Definition at line 279 of file BelosThyraAdapter.hpp. |
|
||||||||||||||||||||
|
Compute the 2-norm of each individual std::vector of
Definition at line 290 of file BelosThyraAdapter.hpp. |
|
||||||||||||||||||||
|
Copy the vectors in
Definition at line 300 of file BelosThyraAdapter.hpp. |
|
||||||||||
|
Replace the vectors in
Definition at line 330 of file BelosThyraAdapter.hpp. |
|
||||||||||||||||
|
Replace each element of the vectors in
Definition at line 341 of file BelosThyraAdapter.hpp. |
|
||||||||||||||||
|
Print the
Definition at line 351 of file BelosThyraAdapter.hpp. |
1.3.9.1