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 |
![]() | |
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 |
![]() | |
typedef Scalar | scalar_type |
typedef LocalOrdinal | local_ordinal_type |
typedef GlobalOrdinal | global_ordinal_type |
typedef Node | node_type |
using | impl_scalar_type = typename Kokkos::Details::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 |
![]() | |
typedef Scalar | scalar_type |
typedef LocalOrdinal | local_ordinal_type |
typedef GlobalOrdinal | global_ordinal_type |
typedef Node | node_type |
Constructor/Destructor Methods | |
BlockedVector (const Teuchos::RCP< const BlockedMap > &map, bool zeroOut=true) | |
Constructor. | |
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. | |
BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & | operator= (const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &rhs) |
Assignment operator: Does a deep copy. | |
Post-construction modification routines | |
virtual void | replaceGlobalValue (GlobalOrdinal globalRow, size_t vectorIndex, const Scalar &value) |
Replace value, using global (row) index. | |
virtual void | sumIntoGlobalValue (GlobalOrdinal globalRow, size_t vectorIndex, const Scalar &value) |
Add value to existing value, using global (row) index. | |
virtual void | replaceLocalValue (LocalOrdinal myRow, size_t vectorIndex, const Scalar &value) |
Replace value, using local (row) index. | |
virtual void | sumIntoLocalValue (LocalOrdinal myRow, size_t vectorIndex, const Scalar &value) |
Add value to existing value, using local (row) index. | |
virtual void | replaceGlobalValue (GlobalOrdinal globalRow, const Scalar &value) |
Replace value, using global (row) index. | |
virtual void | sumIntoGlobalValue (GlobalOrdinal globalRow, const Scalar &value) |
Add value to existing value, using global (row) index. | |
virtual void | replaceLocalValue (LocalOrdinal myRow, const Scalar &value) |
Replace value, using local (row) index. | |
virtual void | sumIntoLocalValue (LocalOrdinal myRow, const Scalar &value) |
Add value to existing value, using local (row) index. | |
virtual void | putScalar (const Scalar &value) |
Set all values in the vector with the given value. | |
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. | |
virtual Teuchos::RCP< Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | getVectorNonConst (size_t j) |
Return a Vector which is a nonconst view of column j. | |
virtual Teuchos::ArrayRCP< const Scalar > | getData (size_t j) const |
Const view of the local values in a particular vector of this vector. | |
virtual Teuchos::ArrayRCP< Scalar > | getDataNonConst (size_t j) |
View of the local values in a particular vector of this vector. | |
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]). | |
virtual Scalar | dot (const Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A) const |
Computes dot product of this Vector against input Vector x. | |
virtual void | abs (const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A) |
Put element-wise absolute values of input vector in target: A = abs(this). | |
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). | |
virtual void | scale (const Scalar &alpha) |
Scale the current values of a vector, this = alpha*this. | |
virtual void | scale (Teuchos::ArrayView< const Scalar > alpha) |
Scale the current values of a vector, this[j] = alpha[j]*this[j]. | |
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. | |
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. | |
virtual Teuchos::ScalarTraits< Scalar >::magnitudeType | norm1 () const |
Compute 1-norm of vector. | |
virtual Teuchos::ScalarTraits< Scalar >::magnitudeType | norm2 () const |
Compute 2-norm of vector. | |
virtual Teuchos::ScalarTraits< Scalar >::magnitudeType | normInf () const |
Compute Inf-norm in vector. | |
virtual void | norm1 (const Teuchos::ArrayView< typename Teuchos::ScalarTraits< Scalar >::magnitudeType > &norms) const |
Compute 1-norm of each vector in multi-vector. | |
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. | |
virtual void | meanValue (const Teuchos::ArrayView< Scalar > &) const |
virtual Scalar | meanValue () const |
Compute mean (average) value of this Vector. | |
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). | |
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). | |
virtual void | elementWiseMultiply (Scalar, const Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, Scalar) |
Multiply a Vector A elementwise by a MultiVector B. | |
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. | |
Attribute access functions | |
virtual size_t | getNumVectors () const |
Number of columns in the Vector. | |
virtual size_t | getLocalLength () const |
Local number of rows on the calling process. | |
virtual global_size_t | getGlobalLength () const |
Global number of rows in the Vector. | |
virtual bool | isSameSize (const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &) const |
Local number of rows on the calling process. | |
Overridden from Teuchos::Describable | |
virtual std::string | description () const |
A simple one-line description of this object. | |
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. | |
virtual void | replaceMap (const RCP< const Map > &map) |
virtual void | doImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Import &, CombineMode) |
Import. | |
virtual void | doExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Import &, CombineMode) |
Export. | |
virtual void | doImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Export &, CombineMode) |
Import (using an Exporter). | |
virtual void | doExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &, const Export &, CombineMode) |
Export (using an Importer). | |
Xpetra specific | |
virtual void | setSeed (unsigned int seed) |
Set seed for Random function. | |
virtual void | randomize (bool bUseXpetraImplementation=false) |
Set multi-vector values to random numbers. | |
virtual void | randomize (const Scalar &minVal, const Scalar &maxVal, bool bUseXpetraImplementation=false) |
Set multi-vector values to random numbers. | |
virtual void | Xpetra_randomize () |
Set vector values to random numbers. XPetra implementation. | |
virtual void | Xpetra_randomize (const Scalar &minVal, const Scalar &maxVal) |
Set vector values to random numbers. XPetra implementation. | |
Teuchos::RCP< const Map > | getMap () const |
Access function for the underlying Map this DistObject was constructed with. | |
Teuchos::RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | getMultiVector (size_t r) const |
return partial Vector associated with block row r | |
Teuchos::RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | getMultiVector (size_t r, bool bThyraMode) const |
return partial Vector associated with block row r | |
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 | |
Teuchos::RCP< Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | Merge () const |
merge BlockedVector blocks to a single Vector | |
virtual void | assign (const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &rhs) |
Implementation of the assignment operator (operator=); does a deep copy. | |
Additional Inherited Members | |
![]() | |
template<class TargetDeviceType , class AccessType > | |
std::conditional< std::is_same< typenamedual_view_type::t_dev_um::execution_space::memory_space, typenameTargetDeviceType::memory_space >::value, typenamedual_view_type::t_dev_um, typenamedual_view_type::t_host_um >::type | getLocalView (AccessType access_type) const |
virtual | ~Vector () |
Destructor. | |
![]() | |
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. | |
MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & | operator= (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &rhs) |
Assignment operator: Does a deep copy. | |
![]() | |
virtual | ~DistObject () |
Destructor. | |
virtual void | doImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)=0 |
Import data into this object using an Import object ("forward mode"). | |
virtual void | beginImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
Import data into this object using an Import object ("forward mode"). | |
virtual void | endImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
Import data into this object using an Import object ("forward mode"). | |
virtual void | doExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)=0 |
Export data into this object using an Export object ("forward mode"). | |
virtual void | beginExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
Export data into this object using an Export object ("forward mode"). | |
virtual void | endExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
Export data into this object using an Export object ("forward mode"). | |
virtual void | doImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)=0 |
Import data into this object using an Export object ("reverse mode"). | |
virtual void | beginImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
Import data into this object using an Export object ("reverse mode"). | |
virtual void | endImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
Import data into this object using an Export object ("reverse mode"). | |
virtual void | doExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)=0 |
Export data into this object using an Import object ("reverse mode"). | |
virtual void | beginExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
Export data into this object using an Import object ("reverse mode"). | |
virtual void | endExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
Export data into this object using an Import object ("reverse mode"). | |
![]() | |
void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
virtual | ~Describable () |
DescribableStreamManipulatorState | describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default) |
std::ostream & | operator<< (std::ostream &os, const DescribableStreamManipulatorState &d) |
void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
virtual | ~Describable () |
![]() | |
LabeledObject () | |
virtual | ~LabeledObject () |
virtual void | setObjectLabel (const std::string &objectLabel) |
virtual std::string | getObjectLabel () const |
![]() | |
Teuchos::RCP< const Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node > > | getBlockedMap () const |
Access function for the underlying Map this DistObject was constructed with. | |
Teuchos::RCP< MultiVector > | getMultiVector (size_t r) const |
return partial multivector associated with block row r | |
Teuchos::RCP< MultiVector > | getMultiVector (size_t r, bool bThyraMode) const |
return partial multivector associated with block row r | |
void | setMultiVector (size_t r, Teuchos::RCP< const MultiVector > v, bool bThyraMode) |
set partial multivector associated with block row r | |
Teuchos::RCP< MultiVector > | Merge () const |
merge BlockedMultiVector blocks to a single MultiVector | |
BlockedMultiVector (const Teuchos::RCP< const BlockedMap > &map, size_t NumVectors, bool zeroOut=true) | |
Constructor. | |
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. | |
BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & | operator= (const MultiVector &rhs) |
Assignment operator: Does a deep copy. | |
![]() | |
static const EVerbosityLevel | verbLevel_default |
![]() | |
![]() |
Definition at line 69 of file Xpetra_BlockedVector_decl.hpp.
using Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::scalar_type = Scalar |
Definition at line 74 of file Xpetra_BlockedVector_decl.hpp.
using Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::local_ordinal_type = LocalOrdinal |
Definition at line 75 of file Xpetra_BlockedVector_decl.hpp.
using Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::global_ordinal_type = GlobalOrdinal |
Definition at line 76 of file Xpetra_BlockedVector_decl.hpp.
using Xpetra::BlockedVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >::node_type = Node |
Definition at line 77 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 |
Definition at line 62 of file Xpetra_BlockedVector_def.hpp.
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 69 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 77 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Destructor.
Definition at line 85 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 92 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Replace value, using global (row) index.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 102 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Add value to existing value, using global (row) index.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 111 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Replace value, using local (row) index.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 120 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Add value to existing value, using local (row) index.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 129 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Replace value, using global (row) index.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 138 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 147 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Replace value, using local (row) index.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 155 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 163 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set all values in the vector with the given value.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 171 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Return a Vector which is a const view of column j.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 179 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Return a Vector which is a nonconst view of column j.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 187 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Const view of the local values in a particular vector of this vector.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 195 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
View of the local values in a particular vector of this vector.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 203 of file Xpetra_BlockedVector_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 >.
Definition at line 211 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 220 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Put element-wise absolute values of input vector in target: A = abs(this).
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 230 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Put element-wise reciprocal values of input vector in target, this(i,j) = 1/A(i,j).
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 239 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Scale the current values of a vector, this = alpha*this.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 248 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Scale the current values of a vector, this[j] = alpha[j]*this[j].
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 257 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Update multi-vector values with scaled values of A, this = beta*this + alpha*A.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 266 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Update vector with scaled values of A and B, this = gamma*this + alpha*A + beta*B.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 277 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute 1-norm of vector.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 290 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute 2-norm of vector.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 301 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute Inf-norm in vector.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 313 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute 1-norm of each vector in multi-vector.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 325 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 334 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute Inf-norm of each vector in multi-vector.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 343 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).
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 352 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute mean (average) value of this Vector.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 361 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B).
Definition at line 370 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B).
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 384 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Multiply a Vector A elementwise by a MultiVector B.
Compute this = scalarThis * this + scalarAB * B @ A
where </tt> denotes element-wise multiplication. In pseudocode, if C denotes
*this
MultiVector:
for all rows i and columns j of C.
B must have the same dimensions as
*this
, while A must have the same number of rows but a single column.
We do not require that A, B, and
*this
have compatible Maps, as long as the number of rows in A, B, and *this
on each process is the same. For example, one or more of these vectors might have a locally replicated Map, or a Map with a local communicator (MPI_COMM_SELF
). This case may occur in block relaxation algorithms when applying a diagonal scaling.
[in] | scalarAB | Scaling factor applied to result of elementwise multiplication of A and B |
[in] | A | Vector A to be element-wise multiplied with B |
[in] | B | MultiVector B to be element-wise multiplied with A |
[in] | scalarThis | Scaling factor for existing values in *this<\tt> MultiVector C |
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 398 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Element-wise multiply of a Vector A with a Vector B.
Definition at line 410 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Number of columns in the Vector.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 454 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Local number of rows on the calling process.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 463 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Global number of rows in the Vector.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 474 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Local number of rows on the calling process.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 483 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
A simple one-line description of this object.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 494 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Print the object with the given verbosity level to a FancyOStream.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 503 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 516 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 525 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 536 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Import (using an Exporter).
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 547 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Export (using an Importer).
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 558 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set seed for Random function.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 569 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set multi-vector values to random numbers.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 581 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set multi-vector values to random numbers.
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 593 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set vector values to random numbers. XPetra implementation.
Reimplemented from Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 605 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set vector values to random numbers. XPetra implementation.
Reimplemented from Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 616 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Access function for the underlying Map this DistObject was constructed with.
Implements Xpetra::DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 626 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 636 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 645 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 654 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 666 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
Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 675 of file Xpetra_BlockedVector_def.hpp.