All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Types | List of all members
Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node > Class Template Reference

#include <Xpetra_EpetraMultiVector.hpp>

Inheritance diagram for Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >:
Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node > Xpetra::DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > Teuchos::Describable Teuchos::LabeledObject Xpetra::EpetraVectorT< GO, NO >

Public Member Functions

void randomize (bool bUseXpetraImplementation=false)
 Set multi-vector values to random numbers. More...
 
Teuchos::RCP< const Map
< LocalOrdinal, GlobalOrdinal,
Node > > 
getMap () const
 Implements DistObject interface. More...
 
void doImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Import. More...
 
void doExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &dest, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Export. More...
 
void doImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Import (using an Exporter). More...
 
void doExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &dest, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Export (using an Importer). More...
 
void replaceMap (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map)
 Replace the underlying Map in place. More...
 
- Public Member Functions inherited from Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >
virtual ~MultiVector ()
 Destructor. More...
 
MultiVector< double, int,
EpetraGlobalOrdinal, Node > & 
operator= (const MultiVector< double, int, EpetraGlobalOrdinal, Node > &rhs)
 Assignment operator: Does a deep copy. More...
 
virtual void Xpetra_randomize ()
 Set multi-vector values to random numbers. XPetra implementation. More...
 
- Public Member Functions inherited from Xpetra::DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node >
virtual ~DistObject ()
 Destructor. More...
 
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"). More...
 
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"). More...
 
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"). More...
 
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"). More...
 
- Public Member Functions inherited from Teuchos::Describable
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
 
DescribableStreamManipulatorState describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default)
 
std::ostream & operator<< (std::ostream &os, const DescribableStreamManipulatorState &d)
 

Protected Member Functions

virtual void assign (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &rhs)
 Implementation of the assignment operator (operator=); does a deep copy. More...
 

Private Types

typedef double Scalar
 
typedef int LocalOrdinal
 
typedef EpetraGlobalOrdinal GlobalOrdinal
 

Constructor/Destructor Methods

 EpetraMultiVectorT (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map, size_t NumVectors, bool zeroOut=true)
 Basic MultiVector constuctor. More...
 
 EpetraMultiVectorT (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source)
 MultiVector copy constructor. More...
 
 EpetraMultiVectorT (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map, const Teuchos::ArrayView< const Teuchos::ArrayView< const Scalar > > &ArrayOfPtrs, size_t NumVectors)
 Set multi-vector values from array of pointers using Teuchos memory management classes. (copy). More...
 
virtual ~EpetraMultiVectorT ()
 MultiVector destructor. More...
 

Post-construction modification routines

void replaceGlobalValue (GlobalOrdinal globalRow, size_t vectorIndex, const Scalar &value)
 Replace value, using global (row) index. More...
 
void sumIntoGlobalValue (GlobalOrdinal globalRow, size_t vectorIndex, const Scalar &value)
 Add value to existing value, using global (row) index. More...
 
void replaceLocalValue (LocalOrdinal myRow, size_t vectorIndex, const Scalar &value)
 Replace value, using local (row) index. More...
 
void sumIntoLocalValue (LocalOrdinal myRow, size_t vectorIndex, const Scalar &value)
 Add value to existing value, using local (row) index. More...
 
void putScalar (const Scalar &value)
 Set all values in the multivector with the given value. More...
 

Data copy and view methods

Teuchos::RCP< const Vector
< double, int, GlobalOrdinal,
Node > > 
getVector (size_t j) const
 Return a Vector which is a const view of column j. More...
 
Teuchos::RCP< Vector< double,
int, GlobalOrdinal, Node > > 
getVectorNonConst (size_t j)
 Return a Vector which is a nonconst view of column j. More...
 
Teuchos::ArrayRCP< const ScalargetData (size_t j) const
 Const view of the local values in a particular vector of this multivector. More...
 
Teuchos::ArrayRCP< ScalargetDataNonConst (size_t j)
 View of the local values in a particular vector of this multivector. More...
 

Mathematical methods

void dot (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const Teuchos::ArrayView< Scalar > &dots) const
 Compute the dot product of each corresponding pair of vectors (columns) in A and B. More...
 
void abs (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A)
 Put element-wise absolute values of input Multi-vector in target: A = abs(this). More...
 
void reciprocal (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A)
 Put element-wise reciprocal values of input Multi-vector in target, this(i,j) = 1/A(i,j). More...
 
void scale (const Scalar &alpha)
 Scale in place: this = alpha*this. More...
 
void scale (Teuchos::ArrayView< const Scalar > alpha)
 Scale the current values of a multi-vector, this[j] = alpha[j]*this[j]. More...
 
void update (const Scalar &alpha, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const Scalar &beta)
 Update: this = beta*this + alpha*A. More...
 
void update (const Scalar &alpha, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const Scalar &beta, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &B, const Scalar &gamma)
 Update: this = gamma*this + alpha*A + beta*B. More...
 
void norm1 (const Teuchos::ArrayView< Teuchos::ScalarTraits< Scalar >::magnitudeType > &norms) const
 Compute 1-norm of each vector in multi-vector. More...
 
void norm2 (const Teuchos::ArrayView< Teuchos::ScalarTraits< Scalar >::magnitudeType > &norms) const
 
void normInf (const Teuchos::ArrayView< Teuchos::ScalarTraits< Scalar >::magnitudeType > &norms) const
 Compute Inf-norm of each vector in multi-vector. More...
 
void meanValue (const Teuchos::ArrayView< Scalar > &means) const
 Compute mean (average) value of each vector in multi-vector. The outcome of this routine is undefined for non-floating point scalar types (e.g., int). More...
 
void multiply (Teuchos::ETransp transA, Teuchos::ETransp transB, const Scalar &alpha, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &B, const Scalar &beta)
 Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B). More...
 
void elementWiseMultiply (Scalar scalarAB, const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &B, Scalar scalarThis)
 Multiply a Vector A elementwise by a MultiVector B. More...
 

Attribute access functions

size_t getNumVectors () const
 Number of columns in the multivector. More...
 
size_t getLocalLength () const
 Local number of rows on the calling process. More...
 
global_size_t getGlobalLength () const
 Global number of rows in the multivector. More...
 
bool isSameSize (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &vec) const
 

Overridden from Teuchos::Describable

std::string description () const
 A simple one-line description of this object. More...
 
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...
 

Xpetra specific

 EpetraMultiVectorT (const RCP< Epetra_MultiVector > &vec)
 EpetraMultiVectorT constructor to wrap a Epetra_MultiVector object. More...
 
RCP< Epetra_MultiVectorgetEpetra_MultiVector () const
 Get the underlying Epetra multivector. More...
 
void setSeed (unsigned int seed)
 Set seed for Random function. More...
 

Additional Inherited Members

- Public Types inherited from Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >
typedef double scalar_type
 
typedef int local_ordinal_type
 
typedef EpetraGlobalOrdinal global_ordinal_type
 
typedef Node node_type
 
- Static Public Attributes inherited from Teuchos::Describable
static const EVerbosityLevel verbLevel_default
 

Detailed Description

template<class EpetraGlobalOrdinal, class Node>
class Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >

Definition at line 89 of file Xpetra_EpetraMultiVector.hpp.

Member Typedef Documentation

template<class EpetraGlobalOrdinal , class Node >
typedef double Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::Scalar
private

Definition at line 92 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
typedef int Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::LocalOrdinal
private

Definition at line 93 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
typedef EpetraGlobalOrdinal Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::GlobalOrdinal
private

Definition at line 94 of file Xpetra_EpetraMultiVector.hpp.

Constructor & Destructor Documentation

template<class EpetraGlobalOrdinal , class Node >
Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::EpetraMultiVectorT ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  map,
size_t  NumVectors,
bool  zeroOut = true 
)
inline

Basic MultiVector constuctor.

Definition at line 102 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::EpetraMultiVectorT ( const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  source)
inline

MultiVector copy constructor.

Definition at line 108 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::EpetraMultiVectorT ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  map,
const Teuchos::ArrayView< const Teuchos::ArrayView< const Scalar > > &  ArrayOfPtrs,
size_t  NumVectors 
)
inline

Set multi-vector values from array of pointers using Teuchos memory management classes. (copy).

Definition at line 114 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
virtual Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::~EpetraMultiVectorT ( )
inlinevirtual

MultiVector destructor.

Definition at line 120 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::EpetraMultiVectorT ( const RCP< Epetra_MultiVector > &  vec)
inline

EpetraMultiVectorT constructor to wrap a Epetra_MultiVector object.

Definition at line 271 of file Xpetra_EpetraMultiVector.hpp.

Member Function Documentation

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::replaceGlobalValue ( GlobalOrdinal  globalRow,
size_t  vectorIndex,
const Scalar value 
)
inlinevirtual

Replace value, using global (row) index.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Reimplemented in Xpetra::EpetraVectorT< GO, NO >.

Definition at line 128 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::sumIntoGlobalValue ( GlobalOrdinal  globalRow,
size_t  vectorIndex,
const Scalar value 
)
inlinevirtual

Add value to existing value, using global (row) index.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Reimplemented in Xpetra::EpetraVectorT< GO, NO >.

Definition at line 131 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::replaceLocalValue ( LocalOrdinal  myRow,
size_t  vectorIndex,
const Scalar value 
)
inlinevirtual

Replace value, using local (row) index.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Reimplemented in Xpetra::EpetraVectorT< GO, NO >.

Definition at line 134 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::sumIntoLocalValue ( LocalOrdinal  myRow,
size_t  vectorIndex,
const Scalar value 
)
inlinevirtual

Add value to existing value, using local (row) index.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Reimplemented in Xpetra::EpetraVectorT< GO, NO >.

Definition at line 137 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::putScalar ( const Scalar value)
inlinevirtual

Set all values in the multivector with the given value.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 140 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
Teuchos::RCP< const Vector< double, int, GlobalOrdinal, Node > > Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::getVector ( size_t  j) const
inlinevirtual

Return a Vector which is a const view of column j.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 148 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
Teuchos::RCP< Vector< double, int, GlobalOrdinal, Node > > Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::getVectorNonConst ( size_t  j)
inlinevirtual

Return a Vector which is a nonconst view of column j.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 153 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
Teuchos::ArrayRCP< const Scalar > Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::getData ( size_t  j) const
inlinevirtual

Const view of the local values in a particular vector of this multivector.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 158 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
Teuchos::ArrayRCP< Scalar > Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::getDataNonConst ( size_t  j)
inlinevirtual

View of the local values in a particular vector of this multivector.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 163 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::dot ( const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  A,
const Teuchos::ArrayView< Scalar > &  dots 
) const
inlinevirtual

Compute the dot product of each corresponding pair of vectors (columns) in A and B.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Reimplemented in Xpetra::EpetraVectorT< GO, NO >.

Definition at line 173 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::abs ( const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  A)
inlinevirtual

Put element-wise absolute values of input Multi-vector in target: A = abs(this).

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 176 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::reciprocal ( const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  A)
inlinevirtual

Put element-wise reciprocal values of input Multi-vector in target, this(i,j) = 1/A(i,j).

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 179 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::scale ( const Scalar alpha)
inlinevirtual

Scale in place: this = alpha*this.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 182 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::scale ( Teuchos::ArrayView< const Scalar alpha)
inlinevirtual

Scale the current values of a multi-vector, this[j] = alpha[j]*this[j].

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 185 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::update ( const Scalar alpha,
const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  A,
const Scalar beta 
)
inlinevirtual

Update: this = beta*this + alpha*A.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 188 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::update ( const Scalar alpha,
const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  A,
const Scalar beta,
const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  B,
const Scalar gamma 
)
inlinevirtual

Update: this = gamma*this + alpha*A + beta*B.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 191 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::norm1 ( const Teuchos::ArrayView< Teuchos::ScalarTraits< Scalar >::magnitudeType > &  norms) const
inlinevirtual

Compute 1-norm of each vector in multi-vector.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Reimplemented in Xpetra::EpetraVectorT< GO, NO >.

Definition at line 194 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::norm2 ( const Teuchos::ArrayView< Teuchos::ScalarTraits< Scalar >::magnitudeType > &  norms) const
inlinevirtual
template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::normInf ( const Teuchos::ArrayView< Teuchos::ScalarTraits< Scalar >::magnitudeType > &  norms) const
inlinevirtual

Compute Inf-norm of each vector in multi-vector.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Reimplemented in Xpetra::EpetraVectorT< GO, NO >.

Definition at line 200 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::meanValue ( const Teuchos::ArrayView< Scalar > &  means) const
inlinevirtual

Compute mean (average) value of each vector in multi-vector. The outcome of this routine is undefined for non-floating point scalar types (e.g., int).

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Reimplemented in Xpetra::EpetraVectorT< GO, NO >.

Definition at line 203 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::multiply ( Teuchos::ETransp  transA,
Teuchos::ETransp  transB,
const Scalar alpha,
const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  A,
const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  B,
const Scalar beta 
)
inlinevirtual

Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B).

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 206 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::elementWiseMultiply ( Scalar  scalarAB,
const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  A,
const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  B,
Scalar  scalarThis 
)
inlinevirtual

Multiply a Vector A elementwise by a MultiVector B.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 209 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
size_t Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::getNumVectors ( ) const
inlinevirtual

Number of columns in the multivector.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 217 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
size_t Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::getLocalLength ( ) const
inlinevirtual

Local number of rows on the calling process.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 220 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
global_size_t Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::getGlobalLength ( ) const
inlinevirtual

Global number of rows in the multivector.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 223 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
bool Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::isSameSize ( const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  vec) const
inlinevirtual
template<class EpetraGlobalOrdinal , class Node >
std::string Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::description ( ) const
inlinevirtual

A simple one-line description of this object.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Reimplemented in Xpetra::EpetraVectorT< GO, NO >.

Definition at line 234 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::describe ( Teuchos::FancyOStream out,
const Teuchos::EVerbosityLevel  verbLevel = Teuchos::Describable::verbLevel_default 
) const
inlinevirtual

Print the object with the given verbosity level to a FancyOStream.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Reimplemented in Xpetra::EpetraVectorT< GO, NO >.

Definition at line 237 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::randomize ( bool  bUseXpetraImplementation = false)
inlinevirtual

Set multi-vector values to random numbers.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 242 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::getMap ( ) const
inlinevirtual

Implements DistObject interface.

Access function for the Tpetra::Map this DistObject was constructed with.

Implements Xpetra::DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node >.

Definition at line 248 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::doImport ( const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  source,
const Import< LocalOrdinal, GlobalOrdinal, Node > &  importer,
CombineMode  CM 
)
inline

Import.

Definition at line 251 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::doExport ( const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  dest,
const Import< LocalOrdinal, GlobalOrdinal, Node > &  importer,
CombineMode  CM 
)
inline

Export.

Definition at line 254 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::doImport ( const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  source,
const Export< LocalOrdinal, GlobalOrdinal, Node > &  exporter,
CombineMode  CM 
)
inline

Import (using an Exporter).

Definition at line 257 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::doExport ( const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  dest,
const Export< LocalOrdinal, GlobalOrdinal, Node > &  exporter,
CombineMode  CM 
)
inline

Export (using an Importer).

Definition at line 260 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::replaceMap ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  map)
inlinevirtual

Replace the underlying Map in place.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 263 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
RCP<Epetra_MultiVector> Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::getEpetra_MultiVector ( ) const
inline

Get the underlying Epetra multivector.

Definition at line 277 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::setSeed ( unsigned int  seed)
inlinevirtual

Set seed for Random function.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 280 of file Xpetra_EpetraMultiVector.hpp.

template<class EpetraGlobalOrdinal , class Node >
virtual void Xpetra::EpetraMultiVectorT< EpetraGlobalOrdinal, Node >::assign ( const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  rhs)
inlineprotectedvirtual

Implementation of the assignment operator (operator=); does a deep copy.

Implements Xpetra::MultiVector< double, int, EpetraGlobalOrdinal, Node >.

Definition at line 333 of file Xpetra_EpetraMultiVector.hpp.


The documentation for this class was generated from the following file: