|
Xpetra Version of the Day
|
#include <Xpetra_BlockedVector_decl.hpp>
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 |
| 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) |
| Element-wise multiply of a Vector A with 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) |
| 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 | |
| Public Member Functions inherited from Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > | |
| 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 Scalar | dot (const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &a) const=0 |
| Computes dot product of this Vector against input Vector x. | |
| 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 | ~MultiVector () |
| Destructor. | |
| MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > & | operator= (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &rhs) |
| Assignment operator: Does a deep copy. | |
| virtual void | dot (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &A, const Teuchos::ArrayView< Scalar > &dots) const=0 |
| Compute dot product of each corresponding pair of vectors, dots[i] = this[i].dot(A[i]). | |
| virtual void | abs (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &A)=0 |
| Put element-wise absolute values of input Multi-vector in target: A = abs(this). | |
| virtual void | reciprocal (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &A)=0 |
| Put element-wise reciprocal values of input Multi-vector in target, this(i,j) = 1/A(i,j). | |
| virtual void | update (const Scalar &alpha, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &A, const Scalar &beta)=0 |
| Update multi-vector values with scaled values of A, this = beta*this + alpha*A. | |
| virtual void | multiply (Teuchos::ETransp transA, Teuchos::ETransp transB, const Scalar &alpha, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &A, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &B, const Scalar &beta)=0 |
| Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B). | |
| virtual void | elementWiseMultiply (Scalar scalarAB, const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &A, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &B, Scalar scalarThis)=0 |
| Multiply a Vector A elementwise by a MultiVector B. | |
| virtual bool | isSameSize (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &vec) const=0 |
| virtual void | replaceMap (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > > &map)=0 |
| virtual | ~DistObject () |
| Destructor. | |
| virtual void | doImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &source, const Import< LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &importer, CombineMode CM)=0 |
| Import data into this object using an Import object ("forward mode"). | |
| virtual void | beginImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &source, const Import< LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &importer, CombineMode CM) |
| Import data into this object using an Import object ("forward mode"). | |
| virtual void | endImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &source, const Import< LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &importer, CombineMode CM) |
| Import data into this object using an Import object ("forward mode"). | |
| virtual void | doExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &source, const Export< LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &exporter, CombineMode CM)=0 |
| Export data into this object using an Export object ("forward mode"). | |
| virtual void | beginExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &source, const Export< LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &exporter, CombineMode CM) |
| Export data into this object using an Export object ("forward mode"). | |
| virtual void | endExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &source, const Export< LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &exporter, CombineMode CM) |
| Export data into this object using an Export object ("forward mode"). | |
| Public Member Functions inherited from Teuchos::Describable | |
| 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 () |
| Public Member Functions inherited from Teuchos::LabeledObject | |
| LabeledObject () | |
| virtual | ~LabeledObject () |
| virtual void | setObjectLabel (const std::string &objectLabel) |
| virtual std::string | getObjectLabel () const |
| Teuchos::RCP< const Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > > | 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 | |
| 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. | |
| virtual | ~BlockedMultiVector () |
| Destructor. | |
| BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > & | operator= (const MultiVector &rhs) |
| Assignment operator: Does a deep copy. | |
| Static Public Attributes inherited from Teuchos::Describable | |
| static const EVerbosityLevel | verbLevel_default |
| virtual void | assign (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > &rhs)=0 |
| Implementation of the assignment operator (operator=); does a deep copy. | |
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 |
Definition at line 21 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 26 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 32 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Destructor.
Definition at line 38 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.
Definition at line 43 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Replace value, using global (row) index.
Definition at line 50 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Add value to existing value, using global (row) index.
Definition at line 56 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Replace value, using local (row) index.
Definition at line 62 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Add value to existing value, using local (row) index.
Definition at line 68 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Replace value, using global (row) index.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 74 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Add value to existing value, using global (row) index.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 80 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Replace value, using local (row) index.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 86 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Add value to existing value, using local (row) index.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 92 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set all values in the vector with the given value.
Definition at line 98 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Return a Vector which is a const view of column j.
Definition at line 105 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Return a Vector which is a nonconst view of column j.
Definition at line 112 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Const view of the local values in a particular vector of this vector.
Definition at line 119 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
View of the local values in a particular vector of this vector.
Definition at line 126 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, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 132 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Definition at line 140 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, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 148 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, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 155 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Scale the current values of a vector, this = alpha*this.
Definition at line 162 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Scale the current values of a vector, this[j] = alpha[j]*this[j].
Definition at line 169 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, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 176 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Update vector with scaled values of A and B, this = gamma*this + alpha*A + beta*B.
Definition at line 185 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute 1-norm of vector.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 197 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute 2-norm of vector.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 207 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute Inf-norm in vector.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 217 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute 1-norm of each vector in multi-vector.
Definition at line 226 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Definition at line 232 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute Inf-norm of each vector in multi-vector.
Definition at line 238 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).
Definition at line 244 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Compute mean (average) value of this Vector.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 251 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B).
Definition at line 257 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, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 268 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, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 279 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Element-wise multiply of a Vector A with a Vector B.
Definition at line 288 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Number of columns in the Vector.
Definition at line 330 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Local number of rows on the calling process.
Definition at line 337 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Global number of rows in the Vector.
Definition at line 346 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Local number of rows on the calling process.
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 352 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
A simple one-line description of this object.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 361 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Print the object with the given verbosity level to a FancyOStream.
Implements Xpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 367 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 376 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 382 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Reimplemented from Xpetra::BlockedMultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 390 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Import (using an Exporter).
Definition at line 398 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Export (using an Importer).
Definition at line 406 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set seed for Random function.
Definition at line 414 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set multi-vector values to random numbers.
Definition at line 422 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Definition at line 430 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set vector values to random numbers. XPetra implementation.
Reimplemented from Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 438 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Set vector values to random numbers. XPetra implementation.
Definition at line 446 of file Xpetra_BlockedVector_def.hpp.
|
virtual |
Access function for the underlying Map this DistObject was constructed with.
Definition at line 455 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 463 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 470 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 476 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 486 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, Tpetra::KokkosClassic::DefaultNode::DefaultNodeType >.
Definition at line 492 of file Xpetra_BlockedVector_def.hpp.