Xpetra
Version of the Day
|
#include <Xpetra_BlockedVector_decl.hpp>
Public Types | |
using | scalar_type = Scalar |
using | local_ordinal_type = LocalOrdinal |
using | global_ordinal_type = GlobalOrdinal |
using | node_type = Node |
Public Types inherited from Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > | |
using | scalar_type = Scalar |
using | local_ordinal_type = LocalOrdinal |
using | global_ordinal_type = GlobalOrdinal |
using | node_type = Node |
typedef Xpetra::MultiVector < Scalar, LocalOrdinal, GlobalOrdinal, Node > ::dual_view_type | dual_view_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 Types inherited from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > | |
typedef Scalar | scalar_type |
typedef LocalOrdinal | local_ordinal_type |
typedef GlobalOrdinal | global_ordinal_type |
typedef Node | node_type |
Public Member Functions | |
Teuchos::RCP< const Map > | getMap () const |
Access function for the underlying Map this DistObject was constructed with. More... | |
Teuchos::RCP < Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | getMultiVector (size_t r) const |
return partial Vector associated with block row r More... | |
Teuchos::RCP < Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | getMultiVector (size_t r, bool bThyraMode) const |
return partial Vector associated with block row r More... | |
void | setMultiVector (size_t r, Teuchos::RCP< const Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >> v, bool bThyraMode) |
set partial Vector associated with block row r More... | |
Teuchos::RCP < Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | Merge () const |
merge BlockedVector blocks to a single Vector More... | |
Public Member Functions inherited from Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > | |
template<class TargetDeviceType , class AccessType > | |
std::conditional< std::is_same < typename dual_view_type::t_dev_um::execution_space::memory_space, typename TargetDeviceType::memory_space > ::value, typename dual_view_type::t_dev_um, typename dual_view_type::t_host_um > ::type | getLocalView (AccessType access_type) const |
virtual | ~Vector () |
Destructor. 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... | |
Public Member Functions inherited from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > | |
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... | |
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... | |
Protected Member Functions | |
virtual void | assign (const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &rhs) |
Implementation of the assignment operator (operator=); does a deep copy. More... | |
Constructor/Destructor Methods | |
BlockedVector (const Teuchos::RCP< const BlockedMap > &map, bool zeroOut=true) | |
Constructor. More... | |
BlockedVector (Teuchos::RCP< const Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >> bmap, Teuchos::RCP< Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >> v) | |
BlockedVector (Teuchos::RCP< const Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node >> mapExtractor, Teuchos::RCP< Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >> v) | |
virtual | ~BlockedVector () |
Destructor. More... | |
BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & | operator= (const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &rhs) |
Assignment operator: Does a deep copy. More... | |
Post-construction modification routines | |
virtual void | replaceGlobalValue (GlobalOrdinal globalRow, size_t vectorIndex, const Scalar &value) |
Replace value, using global (row) index. More... | |
virtual void | sumIntoGlobalValue (GlobalOrdinal globalRow, size_t vectorIndex, const Scalar &value) |
Add value to existing value, using global (row) index. More... | |
virtual void | replaceLocalValue (LocalOrdinal myRow, size_t vectorIndex, const Scalar &value) |
Replace value, using local (row) index. More... | |
virtual void | sumIntoLocalValue (LocalOrdinal myRow, size_t vectorIndex, const Scalar &value) |
Add value to existing value, using local (row) index. More... | |
virtual void | replaceGlobalValue (GlobalOrdinal globalRow, const Scalar &value) |
Replace value, using global (row) index. More... | |
virtual void | sumIntoGlobalValue (GlobalOrdinal globalRow, const Scalar &value) |
Add value to existing value, using global (row) index. More... | |
virtual void | replaceLocalValue (LocalOrdinal myRow, const Scalar &value) |
Replace value, using local (row) index. More... | |
virtual void | sumIntoLocalValue (LocalOrdinal myRow, const Scalar &value) |
Add value to existing value, using local (row) index. More... | |
virtual void | putScalar (const Scalar &value) |
Set all values in the vector 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 vector. More... | |
virtual Teuchos::ArrayRCP< Scalar > | getDataNonConst (size_t j) |
View of the local values in a particular vector of this vector. More... | |
Mathematical methods | |
virtual void | dot (const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const Teuchos::ArrayView< Scalar > &dots) const |
Compute dot product of each corresponding pair of vectors, dots[i] = this[i].dot(A[i]). More... | |
virtual Scalar | dot (const Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A) const |
Computes dot product of this Vector against input Vector x. More... | |
virtual void | abs (const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A) |
Put element-wise absolute values of input vector in target: A = abs(this). More... | |
virtual void | reciprocal (const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A) |
Put element-wise reciprocal values of input vector in target, this(i,j) = 1/A(i,j). More... | |
virtual void | scale (const Scalar &alpha) |
Scale the current values of a vector, this = alpha*this. More... | |
virtual void | scale (Teuchos::ArrayView< const Scalar > alpha) |
Scale the current values of a vector, this[j] = alpha[j]*this[j]. More... | |
virtual void | update (const Scalar &alpha, const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &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 Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const Scalar &beta, const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &B, const Scalar &gamma) |
Update vector with scaled values of A and B, this = gamma*this + alpha*A + beta*B. More... | |
virtual Teuchos::ScalarTraits < Scalar >::magnitudeType | norm1 () const |
Compute 1-norm of vector. More... | |
virtual Teuchos::ScalarTraits < Scalar >::magnitudeType | norm2 () const |
Compute 2-norm of vector. More... | |
virtual Teuchos::ScalarTraits < Scalar >::magnitudeType | normInf () const |
Compute Inf-norm in vector. 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 |
virtual Scalar | meanValue () const |
Compute mean (average) value of this Vector. More... | |
virtual void | multiply (Teuchos::ETransp, Teuchos::ETransp, const Scalar &, const Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Scalar &) |
Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B). More... | |
virtual void | multiply (Teuchos::ETransp, Teuchos::ETransp, const Scalar &, const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Scalar &) |
Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B). More... | |
virtual void | elementWiseMultiply (Scalar, const Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, Scalar) |
Element-wise multiply of a Vector A with a MultiVector B. More... | |
virtual void | elementWiseMultiply (Scalar, const Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &B, Scalar) |
Element-wise multiply of a Vector A with a Vector B. More... | |
Attribute access functions | |
virtual size_t | getNumVectors () const |
Number of columns in the Vector. 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 Vector. More... | |
virtual bool | isSameSize (const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &) 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 vector values to random numbers. XPetra implementation. More... | |
virtual void | Xpetra_randomize (const Scalar &minVal, const Scalar &maxVal) |
Set vector values to random numbers. XPetra implementation. More... | |
Definition at line 28 of file Xpetra_BlockedVector_decl.hpp.
using Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::scalar_type = Scalar |
Definition at line 32 of file Xpetra_BlockedVector_decl.hpp.
using Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::local_ordinal_type = LocalOrdinal |
Definition at line 33 of file Xpetra_BlockedVector_decl.hpp.
using Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::global_ordinal_type = GlobalOrdinal |
Definition at line 34 of file Xpetra_BlockedVector_decl.hpp.
using Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::node_type = Node |
Definition at line 35 of file Xpetra_BlockedVector_decl.hpp.
Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::BlockedVector | ( | const Teuchos::RCP< const BlockedMap > & | map, |
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 vector |
zeroOut | If true initialize vector with zeros |
Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::BlockedVector | ( | Teuchos::RCP< const Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >> | bmap, |
Teuchos::RCP< Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >> | v | ||
) |
NonConst version of constructor which accepts a const version of the vector
bmap | BlockedMap object containing information about the block splitting |
v | Vector that is to be splitted into a blocked vector |
Definition at line 27 of file Xpetra_BlockedVector_def.hpp.
Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::BlockedVector | ( | Teuchos::RCP< const Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node >> | mapExtractor, |
Teuchos::RCP< Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >> | v | ||
) |
Non-const version of constructor which accepts a non-const version of the vector
mapExtractor | MapExtractor object containing information about the block splitting |
v | Vector that is to be splitted into a blocked vector |
Definition at line 33 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Destructor.
Definition at line 39 of file Xpetra_BlockedVector_def.hpp.
BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::operator= | ( | const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & | 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 44 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Replace value, using global (row) index.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 51 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Add value to existing value, using global (row) index.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 57 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Replace value, using local (row) index.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 63 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Add value to existing value, using local (row) index.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 69 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Replace value, using global (row) index.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 75 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Add value to existing value, using global (row) index.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 81 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Replace value, using local (row) index.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 87 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Add value to existing value, using local (row) index.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 93 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set all values in the vector with the given value.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 99 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Return a Vector which is a const view of column j.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 106 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Return a Vector which is a nonconst view of column j.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 113 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Const view of the local values in a particular vector of this vector.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 120 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
View of the local values in a particular vector of this vector.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 127 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute dot product of each corresponding pair of vectors, dots[i] = this[i].dot(A[i]).
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 133 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Computes dot product of this Vector against input Vector x.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 141 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Put element-wise absolute values of input vector in target: A = abs(this).
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 149 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Put element-wise reciprocal values of input vector in target, this(i,j) = 1/A(i,j).
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 156 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Scale the current values of a vector, this = alpha*this.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 163 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Scale the current values of a vector, this[j] = alpha[j]*this[j].
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 170 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Update multi-vector values with scaled values of A, this = beta*this + alpha*A.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 177 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Update vector with scaled values of A and B, this = gamma*this + alpha*A + beta*B.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 186 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute 1-norm of vector.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 198 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute 2-norm of vector.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 208 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute Inf-norm in vector.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 218 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute 1-norm of each vector in multi-vector.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 227 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 233 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute Inf-norm of each vector in multi-vector.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 239 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute mean (average) value of each vector in vector. The outcome of this routine is undefined for non-floating point scalar types (e.g., int).
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 245 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute mean (average) value of this Vector.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 252 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B).
Definition at line 258 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B).
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 269 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Element-wise multiply of a Vector A with a MultiVector B.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 280 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Element-wise multiply of a Vector A with a Vector B.
Definition at line 289 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Number of columns in the Vector.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 331 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Local number of rows on the calling process.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 338 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Global number of rows in the Vector.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 347 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Local number of rows on the calling process.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 353 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
A simple one-line description of this object.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 362 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Print the object with the given verbosity level to a FancyOStream.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 368 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 377 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 383 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 391 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Import (using an Exporter).
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 399 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Export (using an Importer).
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 407 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set seed for Random function.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 415 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set multi-vector values to random numbers.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 423 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set multi-vector values to random numbers.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 431 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set vector values to random numbers. XPetra implementation.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 439 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set vector values to random numbers. XPetra implementation.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 447 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Access function for the underlying Map this DistObject was constructed with.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 456 of file Xpetra_BlockedVector_def.hpp.
Teuchos::RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getMultiVector | ( | size_t | r | ) | const |
return partial Vector associated with block row r
Definition at line 464 of file Xpetra_BlockedVector_def.hpp.
Teuchos::RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getMultiVector | ( | size_t | r, |
bool | bThyraMode | ||
) | const |
return partial Vector associated with block row r
Definition at line 471 of file Xpetra_BlockedVector_def.hpp.
void Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::setMultiVector | ( | size_t | r, |
Teuchos::RCP< const Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >> | v, | ||
bool | bThyraMode | ||
) |
set partial Vector associated with block row r
Definition at line 477 of file Xpetra_BlockedVector_def.hpp.
Teuchos::RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::Merge | ( | ) | const |
merge BlockedVector blocks to a single Vector
Definition at line 487 of file Xpetra_BlockedVector_def.hpp.
|
protectedvirtual |
Implementation of the assignment operator (operator=); does a deep copy.
Each subclass must implement this. This includes Xpetra::EpetraVector and Xpetra::TpetraVector as well as Xpetra::BockedVector
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 493 of file Xpetra_BlockedVector_def.hpp.