Xpetra
Version of the Day
|
#include <Xpetra_BlockedMultiVector_decl.hpp>
Public Types | |
typedef Scalar | scalar_type |
typedef LocalOrdinal | local_ordinal_type |
typedef GlobalOrdinal | global_ordinal_type |
typedef Node | node_type |
Public Types inherited from Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > | |
typedef Scalar | scalar_type |
typedef LocalOrdinal | local_ordinal_type |
typedef GlobalOrdinal | global_ordinal_type |
typedef Node | node_type |
using | impl_scalar_type = typename Kokkos::ArithTraits< Scalar >::val_type |
using | dual_view_type = Kokkos::DualView< impl_scalar_type **, Kokkos::LayoutStride, typename node_type::device_type, Kokkos::MemoryUnmanaged > |
using | dual_view_type_const = Kokkos::DualView< const impl_scalar_type **, Kokkos::LayoutStride, typename node_type::device_type, Kokkos::MemoryUnmanaged > |
using | host_execution_space = typename dual_view_type::host_mirror_space |
using | dev_execution_space = typename dual_view_type::t_dev::execution_space |
Public Member Functions | |
Teuchos::RCP< const Map > | getMap () const |
Access function for the underlying Map this DistObject was constructed with. More... | |
Teuchos::RCP< const Xpetra::BlockedMap < LocalOrdinal, GlobalOrdinal, Node > > | getBlockedMap () const |
Access function for the underlying Map this DistObject was constructed with. More... | |
Teuchos::RCP< MultiVector > | getMultiVector (size_t r) const |
return partial multivector associated with block row r More... | |
Teuchos::RCP< MultiVector > | getMultiVector (size_t r, bool bThyraMode) const |
return partial multivector associated with block row r More... | |
void | setMultiVector (size_t r, Teuchos::RCP< const MultiVector > v, bool bThyraMode) |
set partial multivector associated with block row r More... | |
Teuchos::RCP< MultiVector > | Merge () const |
merge BlockedMultiVector blocks to a single MultiVector More... | |
Public Member Functions inherited from Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > | |
virtual dual_view_type::t_host_const_um | getHostLocalView (Access::ReadOnlyStruct) const |
virtual dual_view_type::t_dev_const_um | getDeviceLocalView (Access::ReadOnlyStruct) const |
virtual dual_view_type::t_host_um | getHostLocalView (Access::OverwriteAllStruct) const |
virtual dual_view_type::t_dev_um | getDeviceLocalView (Access::OverwriteAllStruct) const |
virtual dual_view_type::t_host_um | getHostLocalView (Access::ReadWriteStruct) const |
virtual dual_view_type::t_dev_um | getDeviceLocalView (Access::ReadWriteStruct) const |
virtual | ~MultiVector () |
Destructor. More... | |
MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & | operator= (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &rhs) |
Assignment operator: Does a deep copy. More... | |
virtual void | replaceMap (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &map)=0 |
Public Member Functions inherited from Xpetra::DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > | |
virtual | ~DistObject () |
Destructor. More... | |
virtual void | beginImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
Import data into this object using an Import object ("forward mode"). More... | |
virtual void | beginImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
Import data into this object using an Export object ("reverse mode"). More... | |
virtual void | endImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
Import data into this object using an Import object ("forward mode"). More... | |
virtual void | endImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
Import data into this object using an Export object ("reverse mode"). More... | |
virtual void | beginExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
Export data into this object using an Export object ("forward mode"). More... | |
virtual void | beginExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
Export data into this object using an Import object ("reverse mode"). More... | |
virtual void | endExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
Export data into this object using an Export object ("forward mode"). More... | |
virtual void | endExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
Export data into this object using an Import object ("reverse mode"). More... | |
Protected Member Functions | |
virtual void | assign (const MultiVector &rhs) |
Implementation of the assignment operator (operator=); does a deep copy. More... | |
Private Member Functions | |
void | ExtractVector (RCP< const MultiVector > &full, size_t block, RCP< MultiVector > &partial) const |
void | ExtractVector (RCP< MultiVector > &full, size_t block, RCP< MultiVector > &partial) const |
RCP< MultiVector > | ExtractVector (RCP< const MultiVector > &full, size_t block, bool bThyraMode=false) const |
RCP< MultiVector > | ExtractVector (RCP< MultiVector > &full, size_t block, bool bThyraMode=false) const |
void | ExtractVector (const MultiVector &full, size_t block, MultiVector &partial) const |
void | InsertVector (const MultiVector &partial, size_t block, MultiVector &full, bool bThyraMode=false) const |
void | InsertVector (RCP< const MultiVector > partial, size_t block, RCP< MultiVector > full, bool bThyraMode=false) const |
void | InsertVector (RCP< MultiVector > partial, size_t block, RCP< MultiVector > full, bool bThyraMode=false) const |
Private Attributes | |
Teuchos::RCP< const BlockedMap > | map_ |
blocked map containing the sub block maps (either thyra or xpetra mode) More... | |
std::vector< Teuchos::RCP < MultiVector > > | vv_ |
array containing RCPs of the partial vectors More... | |
size_t | numVectors_ |
number of vectors (columns in multi vector) More... | |
Constructor/Destructor Methods | |
BlockedMultiVector (const Teuchos::RCP< const BlockedMap > &map, size_t NumVectors, bool zeroOut=true) | |
Constructor. More... | |
BlockedMultiVector (Teuchos::RCP< const Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >> bmap, Teuchos::RCP< const MultiVector > v) | |
BlockedMultiVector (Teuchos::RCP< const Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node >> mapExtractor, Teuchos::RCP< const MultiVector > v) | |
BlockedMultiVector (const Teuchos::RCP< const BlockedMap > &map, std::vector< Teuchos::RCP< MultiVector >> &vin) | |
virtual | ~BlockedMultiVector () |
Destructor. More... | |
BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & | operator= (const MultiVector &rhs) |
Assignment operator: Does a deep copy. More... | |
Post-construction modification routines | |
virtual void | replaceGlobalValue (GlobalOrdinal, size_t, const Scalar &) |
Replace value, using global (row) index. More... | |
virtual void | sumIntoGlobalValue (GlobalOrdinal, size_t, const Scalar &) |
Add value to existing value, using global (row) index. More... | |
virtual void | replaceLocalValue (LocalOrdinal, size_t, const Scalar &) |
Replace value, using local (row) index. More... | |
virtual void | sumIntoLocalValue (LocalOrdinal, size_t, const Scalar &) |
Add value to existing value, using local (row) index. More... | |
virtual void | putScalar (const Scalar &value) |
Set all values in the multivector with the given value. More... | |
Data Copy and View get methods | |
virtual Teuchos::RCP< const Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | getVector (size_t j) const |
Return a Vector which is a const view of column j. More... | |
virtual Teuchos::RCP < Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | getVectorNonConst (size_t j) |
Return a Vector which is a nonconst view of column j. More... | |
virtual Teuchos::ArrayRCP < const Scalar > | getData (size_t j) const |
Const view of the local values in a particular vector of this multivector. More... | |
virtual Teuchos::ArrayRCP< Scalar > | getDataNonConst (size_t j) |
View of the local values in a particular vector of this multivector. More... | |
Mathematical methods | |
virtual void | dot (const MultiVector &, const Teuchos::ArrayView< Scalar > &) const |
Compute dot product of each corresponding pair of vectors, dots[i] = this[i].dot(A[i]). More... | |
virtual void | abs (const MultiVector &) |
Put element-wise absolute values of input Multi-vector in target: A = abs(this). More... | |
virtual void | reciprocal (const MultiVector &) |
Put element-wise reciprocal values of input Multi-vector in target, this(i,j) = 1/A(i,j). More... | |
virtual void | scale (const Scalar &alpha) |
Scale the current values of a multi-vector, this = alpha*this. More... | |
virtual void | scale (Teuchos::ArrayView< const Scalar > alpha) |
Scale the current values of a multi-vector, this[j] = alpha[j]*this[j]. More... | |
virtual void | update (const Scalar &alpha, const MultiVector &A, const Scalar &beta) |
Update multi-vector values with scaled values of A, this = beta*this + alpha*A. More... | |
virtual void | update (const Scalar &alpha, const MultiVector &A, const Scalar &beta, const MultiVector &B, const Scalar &gamma) |
Update multi-vector with scaled values of A and B, this = gamma*this + alpha*A + beta*B. More... | |
virtual void | norm1 (const Teuchos::ArrayView< typename Teuchos::ScalarTraits< Scalar >::magnitudeType > &norms) const |
Compute 1-norm of each vector in multi-vector. More... | |
virtual void | norm2 (const Teuchos::ArrayView< typename Teuchos::ScalarTraits< Scalar >::magnitudeType > &norms) const |
virtual void | normInf (const Teuchos::ArrayView< typename Teuchos::ScalarTraits< Scalar >::magnitudeType > &norms) const |
Compute Inf-norm of each vector in multi-vector. More... | |
virtual void | meanValue (const Teuchos::ArrayView< Scalar > &) const |
Compute mean (average) value of each vector in multi-vector. The outcome of this routine is undefined for non-floating point scalar types (e.g., int). More... | |
virtual void | multiply (Teuchos::ETransp, Teuchos::ETransp, const Scalar &, const MultiVector &, const MultiVector &, const Scalar &) |
Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B). More... | |
virtual void | elementWiseMultiply (Scalar scalarAB, const Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const MultiVector &B, Scalar scalarThis) |
Element-wise multiply of a Vector A with a MultiVector B. More... | |
Attribute access functions | |
virtual size_t | getNumVectors () const |
Number of columns in the multivector. More... | |
virtual size_t | getLocalLength () const |
Local number of rows on the calling process. More... | |
virtual global_size_t | getGlobalLength () const |
Global number of rows in the multivector. More... | |
virtual bool | isSameSize (const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &vec) const |
Local number of rows on the calling process. More... | |
Overridden from Teuchos::Describable | |
virtual std::string | description () const |
A simple one-line description of this object. More... | |
virtual void | describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const |
Print the object with the given verbosity level to a FancyOStream. More... | |
virtual void | replaceMap (const RCP< const Map > &map) |
virtual void | doImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Import &, CombineMode) |
Import. More... | |
virtual void | doExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Import &, CombineMode) |
Export. More... | |
virtual void | doImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Export &, CombineMode) |
Import (using an Exporter). More... | |
virtual void | doExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Export &, CombineMode) |
Export (using an Importer). More... | |
Xpetra specific | |
virtual void | setSeed (unsigned int seed) |
Set seed for Random function. More... | |
virtual void | randomize (bool bUseXpetraImplementation=false) |
Set multi-vector values to random numbers. More... | |
virtual void | randomize (const Scalar &minVal, const Scalar &maxVal, bool bUseXpetraImplementation=false) |
Set multi-vector values to random numbers. More... | |
virtual void | Xpetra_randomize () |
Set multi-vector values to random numbers. XPetra implementation. More... | |
virtual void | Xpetra_randomize (const Scalar &minVal, const Scalar &maxVal) |
Set multi-vector values to random numbers. XPetra implementation. More... | |
Definition at line 37 of file Xpetra_BlockedMultiVector_decl.hpp.
typedef Scalar Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::scalar_type |
Definition at line 40 of file Xpetra_BlockedMultiVector_decl.hpp.
typedef LocalOrdinal Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::local_ordinal_type |
Definition at line 41 of file Xpetra_BlockedMultiVector_decl.hpp.
typedef GlobalOrdinal Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::global_ordinal_type |
Definition at line 42 of file Xpetra_BlockedMultiVector_decl.hpp.
typedef Node Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::node_type |
Definition at line 43 of file Xpetra_BlockedMultiVector_decl.hpp.
Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::BlockedMultiVector | ( | const Teuchos::RCP< const BlockedMap > & | map, |
size_t | NumVectors, | ||
bool | zeroOut = true |
||
) |
Constructor.
Const version of constructor which accepts a const version of a blocked map
map | BlockedMap defining the block structure of the multi vector |
NumVectors | Number of vector columns in multi vector |
zeroOut | If true initialize multivector with zeros |
Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::BlockedMultiVector | ( | Teuchos::RCP< const Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >> | bmap, |
Teuchos::RCP< const MultiVector > | v | ||
) |
Const version of constructor which accepts a const version of the multi-vector
bmap | BlockedMap object containing information about the block splitting |
v | MultiVector that is to be splitted into a blocked multi vector |
Definition at line 50 of file Xpetra_BlockedMultiVector_def.hpp.
Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::BlockedMultiVector | ( | Teuchos::RCP< const Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node >> | mapExtractor, |
Teuchos::RCP< const MultiVector > | v | ||
) |
Const version of constructor which accepts a const version of the multi-vector
mapExtractor | MapExtractor object containing information about the block splitting |
v | MultiVector that is to be splitted into a blocked multi vector |
Definition at line 94 of file Xpetra_BlockedMultiVector_def.hpp.
Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::BlockedMultiVector | ( | const Teuchos::RCP< const BlockedMap > & | map, |
std::vector< Teuchos::RCP< MultiVector >> & | vin | ||
) |
Constructor to build a blocked multivector from a blocked map and component vectors
map | BlockedMap object containing information about the block splitting |
vin | A std::vector of RCPs to component vectors |
Definition at line 115 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Destructor.
Definition at line 126 of file Xpetra_BlockedMultiVector_def.hpp.
BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::operator= | ( | const MultiVector & | rhs | ) |
Assignment operator: Does a deep copy.
The assignment operator does a deep copy, just like subclasses' copy constructors.
*this
and the input argument are instances of the same subclass. Definition at line 138 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Replace value, using global (row) index.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 145 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Add value to existing value, using global (row) index.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 151 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Replace value, using local (row) index.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 157 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Add value to existing value, using local (row) index.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 163 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Set all values in the multivector with the given value.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 169 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Return a Vector which is a const view of column j.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 179 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Return a Vector which is a nonconst view of column j.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 194 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Const view of the local values in a particular vector of this multivector.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 203 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
View of the local values in a particular vector of this multivector.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 214 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Compute dot product of each corresponding pair of vectors, dots[i] = this[i].dot(A[i]).
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 224 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Put element-wise absolute values of input Multi-vector in target: A = abs(this).
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 230 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Put element-wise reciprocal values of input Multi-vector in target, this(i,j) = 1/A(i,j).
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 236 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Scale the current values of a multi-vector, this = alpha*this.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 242 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Scale the current values of a multi-vector, this[j] = alpha[j]*this[j].
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 253 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Update multi-vector values with scaled values of A, this = beta*this + alpha*A.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 264 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Update multi-vector with scaled values of A and B, this = gamma*this + alpha*A + beta*B.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 355 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Compute 1-norm of each vector in multi-vector.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 396 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 413 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Compute Inf-norm of each vector in multi-vector.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 434 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Compute mean (average) value of each vector in multi-vector. The outcome of this routine is undefined for non-floating point scalar types (e.g., int).
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 451 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B).
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 457 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Element-wise multiply of a Vector A with a MultiVector B.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 468 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Number of columns in the multivector.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 512 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Local number of rows on the calling process.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 519 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Global number of rows in the multivector.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 527 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Local number of rows on the calling process.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 534 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
A simple one-line description of this object.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::ReorderedBlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 552 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Print the object with the given verbosity level to a FancyOStream.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::ReorderedBlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 558 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 566 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Implements Xpetra::DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 594 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Implements Xpetra::DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 602 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Import (using an Exporter).
Implements Xpetra::DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 610 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Export (using an Importer).
Implements Xpetra::DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 618 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Set seed for Random function.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 626 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Set multi-vector values to random numbers.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 634 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Set multi-vector values to random numbers.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 642 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Set multi-vector values to random numbers. XPetra implementation.
Reimplemented from Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 650 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Set multi-vector values to random numbers. XPetra implementation.
Reimplemented from Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 656 of file Xpetra_BlockedMultiVector_def.hpp.
|
virtual |
Access function for the underlying Map this DistObject was constructed with.
Implements Xpetra::DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 663 of file Xpetra_BlockedMultiVector_def.hpp.
Teuchos::RCP< const Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getBlockedMap | ( | ) | const |
Access function for the underlying Map this DistObject was constructed with.
Definition at line 671 of file Xpetra_BlockedMultiVector_def.hpp.
Teuchos::RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getMultiVector | ( | size_t | r | ) | const |
return partial multivector associated with block row r
Definition at line 679 of file Xpetra_BlockedMultiVector_def.hpp.
Teuchos::RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getMultiVector | ( | size_t | r, |
bool | bThyraMode | ||
) | const |
return partial multivector associated with block row r
Definition at line 691 of file Xpetra_BlockedMultiVector_def.hpp.
void Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::setMultiVector | ( | size_t | r, |
Teuchos::RCP< const MultiVector > | v, | ||
bool | bThyraMode | ||
) |
set partial multivector associated with block row r
Definition at line 705 of file Xpetra_BlockedMultiVector_def.hpp.
Teuchos::RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::Merge | ( | ) | const |
merge BlockedMultiVector blocks to a single MultiVector
Definition at line 731 of file Xpetra_BlockedMultiVector_def.hpp.
|
protectedvirtual |
Implementation of the assignment operator (operator=); does a deep copy.
Each subclass must implement this. This includes Xpetra::EpetraMultiVector and Xpetra::TpetraMultiVector as well as Xpetra::BockedMultiVector
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Reimplemented in Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 754 of file Xpetra_BlockedMultiVector_def.hpp.
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 914 of file Xpetra_BlockedMultiVector_def.hpp.
|
private |
Definition at line 927 of file Xpetra_BlockedMultiVector_def.hpp.
|
private |
|
private |
|
private |
blocked map containing the sub block maps (either thyra or xpetra mode)
Definition at line 295 of file Xpetra_BlockedMultiVector_decl.hpp.
|
private |
array containing RCPs of the partial vectors
Definition at line 296 of file Xpetra_BlockedMultiVector_decl.hpp.
|
private |
number of vectors (columns in multi vector)
Definition at line 297 of file Xpetra_BlockedMultiVector_decl.hpp.