Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal > Class Template Reference

#include <Xpetra_EpetraIntVector_fwd.hpp>

Inheritance diagram for Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >:
Xpetra::Vector< int, int, EpetraGlobalOrdinal > Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > Xpetra::DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > Teuchos::Describable Teuchos::LabeledObject

Public Member Functions

RCP< Epetra_IntVector > getEpetra_IntVector () const
 
const RCP< const Comm< int > > getComm () const
 
Teuchos::RCP< const Map< int, GlobalOrdinal > > getMap () const
 The Map describing the parallel distribution of this object. More...
 
void doImport (const DistObject< int, int, GlobalOrdinal > &source, const Import< int, GlobalOrdinal > &importer, CombineMode CM)
 
void doExport (const DistObject< int, int, GlobalOrdinal > &dest, const Import< int, GlobalOrdinal > &importer, CombineMode CM)
 
void doImport (const DistObject< int, int, GlobalOrdinal > &source, const Export< int, GlobalOrdinal > &exporter, CombineMode CM)
 
void doExport (const DistObject< int, int, GlobalOrdinal > &dest, const Export< int, GlobalOrdinal > &exporter, CombineMode CM)
 
void replaceMap (const RCP< const Map< int, GlobalOrdinal > > &map)
 
- Public Member Functions inherited from Xpetra::Vector< int, int, EpetraGlobalOrdinal >
virtual ~Vector ()
 Destructor. More...
 
virtual int dot (const Vector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &a) const =0
 Computes dot product of this Vector against input Vector x. More...
 
virtual Teuchos::ScalarTraits< int >::magnitudeType normWeighted (const Vector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &weights) const =0
 Compute Weighted 2-norm (RMS Norm) of this Vector. More...
 
- Public Member Functions inherited from Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type >
virtual ~MultiVector ()
 Destructor. More...
 
MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > & operator= (const MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &rhs)
 Assignment operator: Does a deep copy. More...
 
virtual void dot (const MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &A, const Teuchos::ArrayView< int > &dots) const =0
 Compute dot product of each corresponding pair of vectors, dots[i] = this[i].dot(A[i]). More...
 
virtual void abs (const MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &A)=0
 Put element-wise absolute values of input Multi-vector in target: A = abs(this). More...
 
virtual void reciprocal (const MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &A)=0
 Put element-wise reciprocal values of input Multi-vector in target, this(i,j) = 1/A(i,j). More...
 
virtual void update (const int &alpha, const MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &A, const int &beta)=0
 Update multi-vector values with scaled values of A, this = beta*this + alpha*A. More...
 
virtual void update (const int &alpha, const MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &A, const int &beta, const MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &B, const int &gamma)=0
 Update multi-vector with scaled values of A and B, this = gamma*this + alpha*A + beta*B. More...
 
virtual void normWeighted (const MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &weights, const Teuchos::ArrayView< typename Teuchos::ScalarTraits< int >::magnitudeType > &norms) const =0
 
virtual void multiply (Teuchos::ETransp transA, Teuchos::ETransp transB, const int &alpha, const MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &A, const MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &B, const int &beta)=0
 Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B). More...
 
virtual void elementWiseMultiply (intscalarAB, const Vector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &A, const MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &B, intscalarThis)=0
 Element-wise multiply of a Vector A with a MultiVector B. More...
 
virtual void replaceMap (const RCP< const Map< int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > > &map)=0
 
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 ()
 
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
 

Protected Member Functions

virtual void assign (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal > &rhs)
 Implementation of the assignment operator (operator=); does a deep copy. More...
 
- Protected Member Functions inherited from Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type >
virtual void assign (const MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type > &rhs)=0
 Implementation of the assignment operator (operator=); does a deep copy. More...
 

Private Types

typedef int Scalar
 
typedef int LocalOrdinal
 
typedef EpetraGlobalOrdinal GlobalOrdinal
 
typedef KokkosClassic::DefaultNode::DefaultNodeType Node
 

Private Attributes

RCP< Epetra_IntVector > vec_
 The Epetra_IntVector which this class wraps. More...
 

Constructor/Destructor Methods

 EpetraIntVectorT (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map, bool zeroOut=true)
 Sets all vector entries to zero. More...
 
 ~EpetraIntVectorT ()
 Destructor. More...
 

Mathematical methods

int dot (const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &a) const
 TODO missing comment. More...
 
Teuchos::ScalarTraits< int >::magnitudeType norm1 () const
 Return 1-norm of this Vector. More...
 
Teuchos::ScalarTraits< int >::magnitudeType norm2 () const
 Compute 2-norm of this Vector. More...
 
Teuchos::ScalarTraits< int >::magnitudeType normInf () const
 Compute Inf-norm of this Vector. More...
 
Teuchos::ScalarTraits< int >::magnitudeType normWeighted (const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &weights) const
 Compute Weighted 2-norm (RMS Norm) of this Vector. More...
 
int meanValue () const
 Compute mean (average) value of this Vector. More...
 
int maxValue () const
 Compute max value of this Vector. More...
 
void dot (const MultiVector< int, int, GlobalOrdinal, Node > &A, const Teuchos::ArrayView< int > &dots) const
 Computes dot product of each corresponding pair of vectors, dots[i] = this[i].dot(A[i]) More...
 
void abs (const MultiVector< int, int, GlobalOrdinal, Node > &A)
 Puts element-wise absolute values of input Multi-vector in target: A = abs(this) More...
 
void reciprocal (const MultiVector< int, int, GlobalOrdinal, Node > &A)
 Puts element-wise reciprocal values of input Multi-vector in target, this(i,j) = 1/A(i,j). More...
 
void scale (const int &alpha)
 Scale the current values of a multi-vector, this = alpha*this. More...
 
void scale (Teuchos::ArrayView< const int > alpha)
 Scale the current values of a multi-vector, this[j] = alpha[j]*this[j]. More...
 
void update (const int &alpha, const MultiVector< int, int, GlobalOrdinal, Node > &A, const int &beta)
 Update multi-vector values with scaled values of A, this = beta*this + alpha*A. More...
 
void update (const int &alpha, const MultiVector< int, int, GlobalOrdinal, Node > &A, const int &beta, const MultiVector< int, int, GlobalOrdinal, Node > &B, const int &gamma)
 Update multi-vector with scaled values of A and B, this = gamma*this + alpha*A + beta*B. More...
 
void norm1 (const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &norms) const
 Compute 1-norm of each vector in multi-vector. More...
 
void norm2 (const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &norms) const
 Compute 2-norm of each vector in multi-vector. More...
 
void normInf (const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &norms) const
 Compute Inf-norm of each vector in multi-vector. More...
 
void normWeighted (const MultiVector< int, int, GlobalOrdinal, Node > &weights, const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &norms) const
 Compute Weighted 2-norm (RMS Norm) of each vector in multi-vector. More...
 
void meanValue (const Teuchos::ArrayView< int > &means) const
 Compute mean (average) value of each vector in multi-vector. More...
 
void maxValue (const Teuchos::ArrayView< int > &maxs) const
 Compute max value of each vector in multi-vector. More...
 
void multiply (Teuchos::ETransp transA, Teuchos::ETransp transB, const int &alpha, const MultiVector< int, int, GlobalOrdinal, Node > &A, const MultiVector< int, int, GlobalOrdinal, Node > &B, const int &beta)
 Matrix-Matrix multiplication, this = beta*this + alpha*op(A)*op(B). More...
 
void elementWiseMultiply (int scalarAB, const Vector< int, int, GlobalOrdinal, Node > &A, const MultiVector< int, int, GlobalOrdinal, Node > &B, int scalarThis)
 Element-wise multiply of a Vector A with a EpetraMultiVector B. More...
 

Post-construction modification routines

void replaceGlobalValue (GlobalOrdinal globalRow, const Scalar &value)
 Replace current value at the specified location with specified value. More...
 
void sumIntoGlobalValue (GlobalOrdinal globalRow, const Scalar &value)
 Adds specified value to existing value at the specified location. More...
 
void replaceLocalValue (LocalOrdinal myRow, const Scalar &value)
 Replace current value at the specified location with specified values. More...
 
void sumIntoLocalValue (LocalOrdinal myRow, const Scalar &value)
 Adds specified value to existing value at the specified location. More...
 
void putScalar (const int &value)
 Initialize all values in a multi-vector with specified value. More...
 
void randomize (bool bUseXpetraImplementation=true)
 Set multi-vector values to random numbers. More...
 
void setSeed (unsigned int seed)
 Set seed for Random function. More...
 
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...
 

Data Copy and View get methods

Teuchos::RCP< const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getVector (size_t j) const
 Return a Vector which is a const view of column j. More...
 
Teuchos::RCP< Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getVectorNonConst (size_t j)
 Return a Vector which is a nonconst view of column j. More...
 
Teuchos::ArrayRCP< const int > getData (size_t j) const
 
Teuchos::ArrayRCP< int > getDataNonConst (size_t j)
 

Attribute access functions

size_t getNumVectors () const
 Returns the number of vectors in the multi-vector. More...
 
size_t getLocalLength () const
 Returns the local vector length on the calling processor of vectors in the multi-vector. More...
 
global_size_t getGlobalLength () const
 Returns the global vector length of vectors in the multi-vector. More...
 

Overridden from Teuchos::Describable

std::string description () const
 Return 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 some verbosity level to an FancyOStream object. More...
 

Additional Inherited Members

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

Detailed Description

template<class EpetraGlobalOrdinal>
class Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >

Definition at line 50 of file Xpetra_EpetraIntVector_fwd.hpp.

Member Typedef Documentation

template<class EpetraGlobalOrdinal >
typedef int Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::Scalar
private

Definition at line 66 of file Xpetra_EpetraIntVector.hpp.

template<class EpetraGlobalOrdinal >
typedef int Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::LocalOrdinal
private

Definition at line 67 of file Xpetra_EpetraIntVector.hpp.

template<class EpetraGlobalOrdinal >
typedef EpetraGlobalOrdinal Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::GlobalOrdinal
private

Definition at line 68 of file Xpetra_EpetraIntVector.hpp.

template<class EpetraGlobalOrdinal >
typedef KokkosClassic::DefaultNode::DefaultNodeType Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::Node
private

Definition at line 69 of file Xpetra_EpetraIntVector.hpp.

Constructor & Destructor Documentation

template<class EpetraGlobalOrdinal >
Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::EpetraIntVectorT ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  map,
bool  zeroOut = true 
)
inlineexplicit

Sets all vector entries to zero.

Definition at line 77 of file Xpetra_EpetraIntVector.hpp.

template<class EpetraGlobalOrdinal >
Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::~EpetraIntVectorT ( )
inline

Destructor.

Definition at line 84 of file Xpetra_EpetraIntVector.hpp.

Member Function Documentation

template<class EpetraGlobalOrdinal >
int Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::dot ( const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  a) const

TODO missing comment.

Definition at line 65 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
Teuchos::ScalarTraits< int >::magnitudeType Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::norm1 ( ) const
virtual

Return 1-norm of this Vector.

Implements Xpetra::Vector< int, int, EpetraGlobalOrdinal >.

Definition at line 68 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
Teuchos::ScalarTraits< int >::magnitudeType Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::norm2 ( ) const
virtual

Compute 2-norm of this Vector.

Implements Xpetra::Vector< int, int, EpetraGlobalOrdinal >.

Definition at line 71 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
Teuchos::ScalarTraits< int >::magnitudeType Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::normInf ( ) const
virtual

Compute Inf-norm of this Vector.

Implements Xpetra::Vector< int, int, EpetraGlobalOrdinal >.

Definition at line 74 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
Teuchos::ScalarTraits< int >::magnitudeType Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::normWeighted ( const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  weights) const

Compute Weighted 2-norm (RMS Norm) of this Vector.

Definition at line 77 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
int Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::meanValue ( ) const
virtual

Compute mean (average) value of this Vector.

Implements Xpetra::Vector< int, int, EpetraGlobalOrdinal >.

Definition at line 80 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
int Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::maxValue ( ) const

Compute max value of this Vector.

Definition at line 83 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::replaceGlobalValue ( GlobalOrdinal  globalRow,
const Scalar value 
)
virtual

Replace current value at the specified location with specified value.

Implements Xpetra::Vector< int, int, EpetraGlobalOrdinal >.

Definition at line 53 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::sumIntoGlobalValue ( GlobalOrdinal  globalRow,
const Scalar value 
)
virtual

Adds specified value to existing value at the specified location.

Implements Xpetra::Vector< int, int, EpetraGlobalOrdinal >.

Definition at line 56 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::replaceLocalValue ( LocalOrdinal  myRow,
const Scalar value 
)
virtual

Replace current value at the specified location with specified values.

Implements Xpetra::Vector< int, int, EpetraGlobalOrdinal >.

Definition at line 59 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::sumIntoLocalValue ( LocalOrdinal  myRow,
const Scalar value 
)
virtual

Adds specified value to existing value at the specified location.

Implements Xpetra::Vector< int, int, EpetraGlobalOrdinal >.

Definition at line 62 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::putScalar ( const int &  value)
inlinevirtual

Initialize all values in a multi-vector with specified value.

Implements Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type >.

Definition at line 130 of file Xpetra_EpetraIntVector.hpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::randomize ( bool  bUseXpetraImplementation = true)
virtual
template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::setSeed ( unsigned int  seed)
virtual

Set seed for Random function.

Note: this method does not exist in Tpetra interface. Added for MueLu.

Implements Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type >.

Definition at line 89 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
Teuchos::RCP< const Vector< int, int, EpetraGlobalOrdinal, typename EpetraIntVectorT< EpetraGlobalOrdinal >::Node > > Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::getVector ( size_t  j) const
virtual
template<class EpetraGlobalOrdinal >
Teuchos::RCP< Vector< int, int, EpetraGlobalOrdinal, typename EpetraIntVectorT< EpetraGlobalOrdinal >::Node > > Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::getVectorNonConst ( size_t  j)
virtual
template<class EpetraGlobalOrdinal >
Teuchos::ArrayRCP< const int > Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::getData ( size_t  j) const
virtual

Const Local vector access function. View of the local values in a particular vector of this multi-vector.

Implements Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type >.

Definition at line 102 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
Teuchos::ArrayRCP< int > Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::getDataNonConst ( size_t  j)
virtual

Local vector access function. View of the local values in a particular vector of this multi-vector.

Implements Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type >.

Definition at line 112 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::dot ( const MultiVector< int, int, GlobalOrdinal, Node > &  A,
const Teuchos::ArrayView< int > &  dots 
) const

Computes dot product of each corresponding pair of vectors, dots[i] = this[i].dot(A[i])

Definition at line 122 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::abs ( const MultiVector< int, int, GlobalOrdinal, Node > &  A)

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

Definition at line 130 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::reciprocal ( const MultiVector< int, int, GlobalOrdinal, Node > &  A)

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

Definition at line 138 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::scale ( const int &  alpha)
virtual

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

Implements Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type >.

Definition at line 146 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::scale ( Teuchos::ArrayView< const int >  alpha)
virtual

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

Implements Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type >.

Definition at line 152 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::update ( const int &  alpha,
const MultiVector< int, int, GlobalOrdinal, Node > &  A,
const int &  beta 
)

Update multi-vector values with scaled values of A, this = beta*this + alpha*A.

Definition at line 158 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::update ( const int &  alpha,
const MultiVector< int, int, GlobalOrdinal, Node > &  A,
const int &  beta,
const MultiVector< int, int, GlobalOrdinal, Node > &  B,
const int &  gamma 
)

Update multi-vector with scaled values of A and B, this = gamma*this + alpha*A + beta*B.

Definition at line 166 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::norm1 ( const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &  norms) const
virtual
template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::norm2 ( const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &  norms) const
virtual
template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::normInf ( const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &  norms) const
virtual
template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::normWeighted ( const MultiVector< int, int, GlobalOrdinal, Node > &  weights,
const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &  norms 
) const

Compute Weighted 2-norm (RMS Norm) of each vector in multi-vector.

Definition at line 184 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::meanValue ( const Teuchos::ArrayView< int > &  means) const
virtual

Compute mean (average) value of each vector in multi-vector.

Implements Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type >.

Definition at line 187 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::maxValue ( const Teuchos::ArrayView< int > &  maxs) const

Compute max value of each vector in multi-vector.

Definition at line 190 of file Xpetra_EpetraIntVector.cpp.

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

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

Definition at line 193 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::elementWiseMultiply ( int  scalarAB,
const Vector< int, int, GlobalOrdinal, Node > &  A,
const MultiVector< int, int, GlobalOrdinal, Node > &  B,
int  scalarThis 
)

Element-wise multiply of a Vector A with a EpetraMultiVector B.

Definition at line 196 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::replaceGlobalValue ( GlobalOrdinal  globalRow,
size_t  vectorIndex,
const Scalar value 
)
virtual
template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::sumIntoGlobalValue ( GlobalOrdinal  globalRow,
size_t  vectorIndex,
const Scalar value 
)
virtual

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

Implements Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type >.

Definition at line 205 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::replaceLocalValue ( LocalOrdinal  myRow,
size_t  vectorIndex,
const Scalar value 
)
virtual
template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::sumIntoLocalValue ( LocalOrdinal  myRow,
size_t  vectorIndex,
const Scalar value 
)
virtual

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

Implements Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type >.

Definition at line 211 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
size_t Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::getNumVectors ( ) const
virtual
template<class EpetraGlobalOrdinal >
size_t Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::getLocalLength ( ) const
inlinevirtual

Returns the local vector length on the calling processor of vectors in the multi-vector.

Implements Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type >.

Definition at line 233 of file Xpetra_EpetraIntVector.hpp.

template<class EpetraGlobalOrdinal >
global_size_t Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::getGlobalLength ( ) const
inlinevirtual

Returns the global vector length of vectors in the multi-vector.

Implements Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, typename MultiVector< int, int, EpetraGlobalOrdinal >::node_type >.

Definition at line 236 of file Xpetra_EpetraIntVector.hpp.

template<class EpetraGlobalOrdinal >
std::string Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::description ( ) const
virtual

Return a simple one-line description of this object.

Implements Xpetra::Vector< int, int, EpetraGlobalOrdinal >.

Definition at line 217 of file Xpetra_EpetraIntVector.cpp.

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

Print the object with some verbosity level to an FancyOStream object.

Implements Xpetra::Vector< int, int, EpetraGlobalOrdinal >.

Definition at line 229 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
RCP< Epetra_IntVector > Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::getEpetra_IntVector ( ) const
inline

Definition at line 251 of file Xpetra_EpetraIntVector.hpp.

template<class EpetraGlobalOrdinal >
const RCP<const Comm<int> > Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::getComm ( ) const
inline

Definition at line 253 of file Xpetra_EpetraIntVector.hpp.

template<class EpetraGlobalOrdinal >
Teuchos::RCP<const Map<int, GlobalOrdinal> > Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::getMap ( ) const
inlinevirtual

The Map describing the parallel distribution of this object.

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

Definition at line 258 of file Xpetra_EpetraIntVector.hpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::doImport ( const DistObject< int, int, GlobalOrdinal > &  source,
const Import< int, GlobalOrdinal > &  importer,
CombineMode  CM 
)

Definition at line 247 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::doExport ( const DistObject< int, int, GlobalOrdinal > &  dest,
const Import< int, GlobalOrdinal > &  importer,
CombineMode  CM 
)

Definition at line 260 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::doImport ( const DistObject< int, int, GlobalOrdinal > &  source,
const Export< int, GlobalOrdinal > &  exporter,
CombineMode  CM 
)

Definition at line 273 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::doExport ( const DistObject< int, int, GlobalOrdinal > &  dest,
const Export< int, GlobalOrdinal > &  exporter,
CombineMode  CM 
)

Definition at line 286 of file Xpetra_EpetraIntVector.cpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::replaceMap ( const RCP< const Map< int, GlobalOrdinal > > &  map)
inline

Definition at line 279 of file Xpetra_EpetraIntVector.hpp.

template<class EpetraGlobalOrdinal >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::assign ( const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal > &  rhs)
protectedvirtual

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

Definition at line 300 of file Xpetra_EpetraIntVector.cpp.

Member Data Documentation

template<class EpetraGlobalOrdinal >
RCP< Epetra_IntVector > Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal >::vec_
private

The Epetra_IntVector which this class wraps.

Definition at line 333 of file Xpetra_EpetraIntVector.hpp.


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