Xpetra Version of the Day
Loading...
Searching...
No Matches
Xpetra::EpetraIntVectorT< long long, EpetraNode > Class Reference

#include <Xpetra_EpetraIntVector.hpp>

Inheritance diagram for Xpetra::EpetraIntVectorT< long long, EpetraNode >:
Xpetra::Vector< int, int, long long, EpetraNode > Xpetra::Vector< int, int, long long, EpetraNode > Xpetra::MultiVector< int, int, long long, EpetraNode > Xpetra::MultiVector< int, int, long long, EpetraNode > Xpetra::DistObject< int, int, long long, EpetraNode > Xpetra::DistObject< int, int, long long, EpetraNode > Teuchos::Describable Teuchos::Describable Teuchos::LabeledObject Teuchos::LabeledObject

Private Types

typedef int Scalar
 
typedef int LocalOrdinal
 
typedef long long GlobalOrdinal
 
typedef EpetraNode Node
 
typedef int Scalar
 
typedef int LocalOrdinal
 
typedef long long GlobalOrdinal
 

Overridden from Teuchos::Describable

RCP< Epetra_IntVectorvec_
 The Epetra_IntVector which this class wraps.
 
std::string description () const
 Return a simple one-line description of this object.
 
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.
 
RCP< Epetra_IntVectorgetEpetra_IntVector () const
 
const RCP< const Comm< int > > getComm () const
 
Teuchos::RCP< const Map< int, GlobalOrdinal, Node > > getMap () const
 The Map describing the parallel distribution of this object.
 
void doImport (const DistObject< int, int, GlobalOrdinal, Node > &source, const Import< int, GlobalOrdinal, Node > &importer, CombineMode CM)
 Import data into this object using an Import object ("forward mode").
 
void doExport (const DistObject< int, LocalOrdinal, GlobalOrdinal, Node > &dest, const Import< int, GlobalOrdinal, Node > &importer, CombineMode CM)
 Export data into this object using an Import object ("reverse mode").
 
void doImport (const DistObject< int, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< int, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Import data into this object using an Export object ("reverse mode").
 
void doExport (const DistObject< int, LocalOrdinal, GlobalOrdinal, Node > &dest, const Export< int, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Export data into this object using an Export object ("forward mode").
 
void replaceMap (const RCP< const Map< int, GlobalOrdinal, Node > > &)
 
virtual void assign (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &rhs)
 Implementation of the assignment operator (operator=); does a deep copy.
 

Constructor/Destructor Methods

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

Mathematical methods

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

Post-construction modification routines

void replaceGlobalValue (GlobalOrdinal, const Scalar &)
 Replace current value at the specified location with specified value.
 
void sumIntoGlobalValue (GlobalOrdinal, const Scalar &)
 Adds specified value to existing value at the specified location.
 
void replaceLocalValue (LocalOrdinal myRow, const Scalar &value)
 Replace current value at the specified location with specified values.
 
void sumIntoLocalValue (LocalOrdinal myRow, const Scalar &value)
 Adds specified value to existing value at the specified location.
 
void putScalar (const int &value)
 Initialize all values in a multi-vector with specified value.
 
void randomize (bool=true)
 Set multi-vector values to random numbers.
 
void randomize (const Scalar &, const Scalar &, bool=true)
 Set multi-vector values to random numbers.
 
void setSeed (unsigned int)
 Set seed for Random function.
 
void replaceGlobalValue (GlobalOrdinal, size_t, const Scalar &)
 Replace value, using global (row) index.
 
void sumIntoGlobalValue (GlobalOrdinal, size_t, const Scalar &)
 Add value to existing value, using global (row) index.
 
void replaceLocalValue (LocalOrdinal, size_t, const Scalar &)
 Replace value, using local (row) index.
 
void sumIntoLocalValue (LocalOrdinal, size_t, const Scalar &)
 Add value to existing value, using local (row) index.
 

Data Copy and View get methods

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

Attribute access functions

size_t getNumVectors () const
 Returns the number of vectors in the multi-vector.
 
size_t getLocalLength () const
 Returns the local vector length on the calling processor of vectors in the multi-vector.
 
global_size_t getGlobalLength () const
 Returns the global vector length of vectors in the multi-vector.
 
bool isSameSize (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &vec) const
 Checks to see if the local length, number of vectors and size of Scalar type match.
 

Constructor/Destructor Methods

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

Mathematical methods

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

Post-construction modification routines

void replaceGlobalValue (GlobalOrdinal globalRow, const Scalar &value)
 Replace current value at the specified location with specified value.
 
void replaceGlobalValue (GlobalOrdinal globalRow, size_t vectorIndex, const Scalar &value)
 Replace value, using global (row) index.
 
void sumIntoGlobalValue (GlobalOrdinal globalRow, const Scalar &value)
 Adds specified value to existing value at the specified location.
 
void sumIntoGlobalValue (GlobalOrdinal globalRow, size_t vectorIndex, const Scalar &value)
 Add value to existing value, using global (row) index.
 
void replaceLocalValue (LocalOrdinal myRow, const Scalar &value)
 Replace current value at the specified location with specified values.
 
void replaceLocalValue (LocalOrdinal myRow, size_t vectorIndex, const Scalar &value)
 Replace value, using local (row) index.
 
void sumIntoLocalValue (LocalOrdinal myRow, const Scalar &value)
 Adds specified value to existing value at the specified location.
 
void sumIntoLocalValue (LocalOrdinal myRow, size_t vectorIndex, const Scalar &value)
 Add value to existing value, using local (row) index.
 
void putScalar (const int &value)
 Initialize all values in a multi-vector with specified value.
 
void randomize (bool bUseXpetraImplementation=true)
 Set multi-vector values to random numbers.
 
void randomize (const Scalar &, const Scalar &, bool bUseXpetraImplementation=true)
 Set multi-vector values to random numbers.
 
void setSeed (unsigned int seed)
 Set seed for Random function.
 

Data Copy and View get methods

Teuchos::RCP< const Vector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > > getVector (size_t j) const
 Return a Vector which is a const view of column j.
 
Teuchos::RCP< Vector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > > getVectorNonConst (size_t j)
 Return a Vector which is a nonconst view of column j.
 
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.
 
size_t getLocalLength () const
 Returns the local vector length on the calling processor of vectors in the multi-vector.
 
global_size_t getGlobalLength () const
 Returns the global vector length of vectors in the multi-vector.
 
bool isSameSize (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &vec) const
 Checks to see if the local length, number of vectors and size of Scalar type match.
 

Overridden from Teuchos::Describable

std::string description () const
 Return a simple one-line description of this object.
 
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.
 
RCP< Epetra_IntVectorgetEpetra_IntVector () const
 
const RCP< const Comm< int > > getComm () const
 
Teuchos::RCP< const Map< int, GlobalOrdinal, EpetraNode > > getMap () const
 The Map describing the parallel distribution of this object.
 
void doImport (const DistObject< int, int, GlobalOrdinal, EpetraNode > &source, const Import< int, GlobalOrdinal, EpetraNode > &importer, CombineMode CM)
 Import data into this object using an Import object ("forward mode").
 
void doImport (const DistObject< int, LocalOrdinal, GlobalOrdinal, EpetraNode > &source, const Export< int, GlobalOrdinal, EpetraNode > &exporter, CombineMode CM)
 Import data into this object using an Export object ("reverse mode").
 
void doExport (const DistObject< int, LocalOrdinal, GlobalOrdinal, EpetraNode > &dest, const Import< int, GlobalOrdinal, EpetraNode > &importer, CombineMode CM)
 Export data into this object using an Import object ("reverse mode").
 
void doExport (const DistObject< int, LocalOrdinal, GlobalOrdinal, EpetraNode > &dest, const Export< int, GlobalOrdinal, EpetraNode > &exporter, CombineMode CM)
 Export data into this object using an Export object ("forward mode").
 
void replaceMap (const RCP< const Map< int, GlobalOrdinal, EpetraNode > > &map)
 
virtual void assign (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &rhs)
 Implementation of the assignment operator (operator=); does a deep copy.
 

Additional Inherited Members

- Public Types inherited from Xpetra::Vector< int, int, long long, EpetraNode >
using scalar_type
 
using local_ordinal_type
 
using global_ordinal_type
 
using node_type
 
typedef Xpetra::MultiVector< int, int, long long, EpetraNode >::dual_view_type dual_view_type
 
- Public Types inherited from Xpetra::MultiVector< int, int, long long, EpetraNode >
typedef int scalar_type
 
typedef int local_ordinal_type
 
typedef long long global_ordinal_type
 
typedef EpetraNode node_type
 
using impl_scalar_type
 
using dual_view_type
 
using dual_view_type_const
 
using host_execution_space
 
using dev_execution_space
 
- Public Member Functions inherited from Xpetra::Vector< int, int, long long, EpetraNode >
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 void Xpetra_randomize ()
 Set multi-vector values to random numbers. XPetra implementation.
 
virtual void Xpetra_randomize (const int &minVal, const int &maxVal)
 Set multi-vector values to random numbers. XPetra implementation.
 
virtual dual_view_type::t_host_const_um getHostLocalView (Access::ReadOnlyStruct) const
 
virtual dual_view_type::t_host_um getHostLocalView (Access::OverwriteAllStruct) const
 
virtual dual_view_type::t_host_um getHostLocalView (Access::ReadWriteStruct) const
 
virtual dual_view_type::t_dev_const_um getDeviceLocalView (Access::ReadOnlyStruct) const
 
virtual dual_view_type::t_dev_um getDeviceLocalView (Access::OverwriteAllStruct) const
 
virtual dual_view_type::t_dev_um getDeviceLocalView (Access::ReadWriteStruct) const
 
virtual ~MultiVector ()
 Destructor.
 
MultiVector< int, int, long long, EpetraNode > & operator= (const MultiVector< int, int, long long, EpetraNode > &rhs)
 Assignment operator: Does a deep copy.
 
virtual ~DistObject ()
 Destructor.
 
virtual void beginImport (const DistObject< int, int, long long, EpetraNode > &source, const Import< int, long long, EpetraNode > &importer, CombineMode CM)
 Import data into this object using an Import object ("forward mode").
 
virtual void beginImport (const DistObject< int, int, long long, EpetraNode > &source, const Export< int, long long, EpetraNode > &exporter, CombineMode CM)
 Import data into this object using an Export object ("reverse mode").
 
virtual void endImport (const DistObject< int, int, long long, EpetraNode > &source, const Import< int, long long, EpetraNode > &importer, CombineMode CM)
 Import data into this object using an Import object ("forward mode").
 
virtual void endImport (const DistObject< int, int, long long, EpetraNode > &source, const Export< int, long long, EpetraNode > &exporter, CombineMode CM)
 Import data into this object using an Export object ("reverse mode").
 
virtual void beginExport (const DistObject< int, int, long long, EpetraNode > &source, const Export< int, long long, EpetraNode > &exporter, CombineMode CM)
 Export data into this object using an Export object ("forward mode").
 
virtual void beginExport (const DistObject< int, int, long long, EpetraNode > &source, const Import< int, long long, EpetraNode > &importer, CombineMode CM)
 Export data into this object using an Import object ("reverse mode").
 
virtual void endExport (const DistObject< int, int, long long, EpetraNode > &source, const Export< int, long long, EpetraNode > &exporter, CombineMode CM)
 Export data into this object using an Export object ("forward mode").
 
virtual void endExport (const DistObject< int, int, long long, EpetraNode > &source, const Import< int, long long, EpetraNode > &importer, CombineMode CM)
 Export data into this object using an Import object ("reverse 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
 
- Static Public Attributes inherited from Teuchos::Describable
static const EVerbosityLevel verbLevel_default
 

Detailed Description

Definition at line 713 of file Xpetra_EpetraIntVector.hpp.

Member Typedef Documentation

◆ Scalar [1/2]

typedef int Xpetra::EpetraIntVectorT< long long, EpetraNode >::Scalar
private

Definition at line 716 of file Xpetra_EpetraIntVector.hpp.

◆ LocalOrdinal [1/2]

typedef int Xpetra::EpetraIntVectorT< long long, EpetraNode >::LocalOrdinal
private

Definition at line 717 of file Xpetra_EpetraIntVector.hpp.

◆ GlobalOrdinal [1/2]

typedef long long Xpetra::EpetraIntVectorT< long long, EpetraNode >::GlobalOrdinal
private

Definition at line 718 of file Xpetra_EpetraIntVector.hpp.

◆ Node

typedef EpetraNode Xpetra::EpetraIntVectorT< long long, EpetraNode >::Node
private

Definition at line 719 of file Xpetra_EpetraIntVector.hpp.

◆ Scalar [2/2]

typedef int Xpetra::EpetraIntVectorT< long long, EpetraNode >::Scalar
private

Definition at line 75 of file Xpetra_EpetraIntVector.hpp.

◆ LocalOrdinal [2/2]

typedef int Xpetra::EpetraIntVectorT< long long, EpetraNode >::LocalOrdinal
private

Definition at line 76 of file Xpetra_EpetraIntVector.hpp.

◆ GlobalOrdinal [2/2]

typedef long long Xpetra::EpetraIntVectorT< long long, EpetraNode >::GlobalOrdinal
private

Definition at line 77 of file Xpetra_EpetraIntVector.hpp.

Constructor & Destructor Documentation

◆ EpetraIntVectorT() [1/2]

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

Sets all vector entries to zero.

Definition at line 727 of file Xpetra_EpetraIntVector.hpp.

◆ ~EpetraIntVectorT() [1/2]

Destructor.

Definition at line 733 of file Xpetra_EpetraIntVector.hpp.

◆ EpetraIntVectorT() [2/2]

Xpetra::EpetraIntVectorT< long long, EpetraNode >::EpetraIntVectorT ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, EpetraNode > > & map,
bool zeroOut = true )
inlineexplicit

Sets all vector entries to zero.

Definition at line 85 of file Xpetra_EpetraIntVector.hpp.

◆ ~EpetraIntVectorT() [2/2]

Destructor.

Definition at line 88 of file Xpetra_EpetraIntVector.hpp.

Member Function Documentation

◆ dot() [1/4]

int Xpetra::EpetraIntVectorT< long long, EpetraNode >::dot ( const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & ) const
inlinevirtual

TODO missing comment.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 741 of file Xpetra_EpetraIntVector.hpp.

◆ norm1() [1/4]

Teuchos::ScalarTraits< int >::magnitudeType Xpetra::EpetraIntVectorT< long long, EpetraNode >::norm1 ( ) const
inlinevirtual

Return 1-norm of this Vector.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 745 of file Xpetra_EpetraIntVector.hpp.

◆ norm2() [1/4]

Teuchos::ScalarTraits< int >::magnitudeType Xpetra::EpetraIntVectorT< long long, EpetraNode >::norm2 ( ) const
inlinevirtual

Compute 2-norm of this Vector.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 749 of file Xpetra_EpetraIntVector.hpp.

◆ normInf() [1/4]

Teuchos::ScalarTraits< int >::magnitudeType Xpetra::EpetraIntVectorT< long long, EpetraNode >::normInf ( ) const
inlinevirtual

Compute Inf-norm of this Vector.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 752 of file Xpetra_EpetraIntVector.hpp.

◆ meanValue() [1/4]

int Xpetra::EpetraIntVectorT< long long, EpetraNode >::meanValue ( ) const
inlinevirtual

Compute mean (average) value of this Vector.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 755 of file Xpetra_EpetraIntVector.hpp.

◆ maxValue() [1/4]

int Xpetra::EpetraIntVectorT< long long, EpetraNode >::maxValue ( ) const
inline

Compute max value of this Vector.

Definition at line 758 of file Xpetra_EpetraIntVector.hpp.

◆ replaceGlobalValue() [1/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::replaceGlobalValue ( GlobalOrdinal ,
const Scalar &  )
inlinevirtual

Replace current value at the specified location with specified value.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 766 of file Xpetra_EpetraIntVector.hpp.

◆ sumIntoGlobalValue() [1/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::sumIntoGlobalValue ( GlobalOrdinal ,
const Scalar &  )
inlinevirtual

Adds specified value to existing value at the specified location.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 769 of file Xpetra_EpetraIntVector.hpp.

◆ replaceLocalValue() [1/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::replaceLocalValue ( LocalOrdinal myRow,
const Scalar & value )
inlinevirtual

Replace current value at the specified location with specified values.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 772 of file Xpetra_EpetraIntVector.hpp.

◆ sumIntoLocalValue() [1/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::sumIntoLocalValue ( LocalOrdinal myRow,
const Scalar & value )
inlinevirtual

Adds specified value to existing value at the specified location.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 775 of file Xpetra_EpetraIntVector.hpp.

◆ putScalar() [1/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::putScalar ( const int & value)
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 778 of file Xpetra_EpetraIntVector.hpp.

◆ randomize() [1/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::randomize ( bool = true)
inlinevirtual

Set multi-vector values to random numbers.

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 781 of file Xpetra_EpetraIntVector.hpp.

◆ randomize() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::randomize ( const Scalar & ,
const Scalar & ,
bool = true )
inlinevirtual

Set multi-vector values to random numbers.

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 784 of file Xpetra_EpetraIntVector.hpp.

◆ setSeed() [1/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::setSeed ( unsigned int )
inlinevirtual

Set seed for Random function.

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 788 of file Xpetra_EpetraIntVector.hpp.

◆ getVector() [1/2]

Teuchos::RCP< const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getVector ( size_t ) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 797 of file Xpetra_EpetraIntVector.hpp.

◆ getVectorNonConst() [1/2]

Teuchos::RCP< Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getVectorNonConst ( size_t )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 802 of file Xpetra_EpetraIntVector.hpp.

◆ getData() [1/2]

Teuchos::ArrayRCP< const int > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getData ( size_t ) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 808 of file Xpetra_EpetraIntVector.hpp.

◆ getDataNonConst() [1/2]

Teuchos::ArrayRCP< int > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getDataNonConst ( size_t )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 819 of file Xpetra_EpetraIntVector.hpp.

◆ dot() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::dot ( const MultiVector< int, int, GlobalOrdinal, Node > & ,
const Teuchos::ArrayView< int > &  ) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 833 of file Xpetra_EpetraIntVector.hpp.

◆ abs() [1/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::abs ( const MultiVector< int, int, GlobalOrdinal, Node > & )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 841 of file Xpetra_EpetraIntVector.hpp.

◆ reciprocal() [1/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::reciprocal ( const MultiVector< int, int, GlobalOrdinal, Node > & )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 849 of file Xpetra_EpetraIntVector.hpp.

◆ scale() [1/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::scale ( const int & )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 857 of file Xpetra_EpetraIntVector.hpp.

◆ scale() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::scale ( Teuchos::ArrayView< const int > )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 863 of file Xpetra_EpetraIntVector.hpp.

◆ update() [1/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::update ( const int & ,
const MultiVector< int, int, GlobalOrdinal, Node > & ,
const int &  )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 869 of file Xpetra_EpetraIntVector.hpp.

◆ update() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::update ( const int & ,
const MultiVector< int, int, GlobalOrdinal, Node > & ,
const int & ,
const MultiVector< int, int, GlobalOrdinal, Node > & ,
const int &  )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 877 of file Xpetra_EpetraIntVector.hpp.

◆ norm1() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::norm1 ( const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > & ) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 886 of file Xpetra_EpetraIntVector.hpp.

◆ norm2() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::norm2 ( const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > & ) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 889 of file Xpetra_EpetraIntVector.hpp.

◆ normInf() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::normInf ( const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > & ) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 892 of file Xpetra_EpetraIntVector.hpp.

◆ meanValue() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::meanValue ( const Teuchos::ArrayView< int > & ) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 895 of file Xpetra_EpetraIntVector.hpp.

◆ maxValue() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::maxValue ( const Teuchos::ArrayView< int > & ) const
inline

Compute max value of each vector in multi-vector.

Definition at line 898 of file Xpetra_EpetraIntVector.hpp.

◆ multiply() [1/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::multiply ( Teuchos::ETransp ,
Teuchos::ETransp ,
const int & ,
const MultiVector< int, int, GlobalOrdinal, Node > & ,
const MultiVector< int, int, GlobalOrdinal, Node > & ,
const int &  )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 901 of file Xpetra_EpetraIntVector.hpp.

◆ elementWiseMultiply() [1/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::elementWiseMultiply ( int ,
const Vector< int, int, GlobalOrdinal, Node > & ,
const MultiVector< int, int, GlobalOrdinal, Node > & ,
int  )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 904 of file Xpetra_EpetraIntVector.hpp.

◆ replaceGlobalValue() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::replaceGlobalValue ( GlobalOrdinal ,
size_t ,
const Scalar &  )
inlinevirtual

Replace value, using global (row) index.

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 915 of file Xpetra_EpetraIntVector.hpp.

◆ sumIntoGlobalValue() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::sumIntoGlobalValue ( GlobalOrdinal ,
size_t ,
const Scalar &  )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 918 of file Xpetra_EpetraIntVector.hpp.

◆ replaceLocalValue() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::replaceLocalValue ( LocalOrdinal ,
size_t ,
const Scalar &  )
inlinevirtual

Replace value, using local (row) index.

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 921 of file Xpetra_EpetraIntVector.hpp.

◆ sumIntoLocalValue() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::sumIntoLocalValue ( LocalOrdinal ,
size_t ,
const Scalar &  )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 924 of file Xpetra_EpetraIntVector.hpp.

◆ getNumVectors() [1/2]

size_t Xpetra::EpetraIntVectorT< long long, EpetraNode >::getNumVectors ( ) const
inlinevirtual

Returns the number of vectors in the multi-vector.

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 932 of file Xpetra_EpetraIntVector.hpp.

◆ getLocalLength() [1/2]

size_t Xpetra::EpetraIntVectorT< long long, EpetraNode >::getLocalLength ( ) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 936 of file Xpetra_EpetraIntVector.hpp.

◆ getGlobalLength() [1/2]

global_size_t Xpetra::EpetraIntVectorT< long long, EpetraNode >::getGlobalLength ( ) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 939 of file Xpetra_EpetraIntVector.hpp.

◆ isSameSize() [1/2]

bool Xpetra::EpetraIntVectorT< long long, EpetraNode >::isSameSize ( const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & vec) const
inlinevirtual

Checks to see if the local length, number of vectors and size of Scalar type match.

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 943 of file Xpetra_EpetraIntVector.hpp.

◆ description() [1/2]

std::string Xpetra::EpetraIntVectorT< long long, EpetraNode >::description ( ) const
inlinevirtual

Return a simple one-line description of this object.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 956 of file Xpetra_EpetraIntVector.hpp.

◆ describe() [1/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::describe ( Teuchos::FancyOStream & out,
const Teuchos::EVerbosityLevel verbLevel = Teuchos::Describable::verbLevel_default ) const
inlinevirtual

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

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 968 of file Xpetra_EpetraIntVector.hpp.

◆ getEpetra_IntVector() [1/2]

RCP< Epetra_IntVector > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getEpetra_IntVector ( ) const
inline

Definition at line 987 of file Xpetra_EpetraIntVector.hpp.

◆ getComm() [1/2]

const RCP< const Comm< int > > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getComm ( ) const
inline

Definition at line 989 of file Xpetra_EpetraIntVector.hpp.

◆ getMap() [1/2]

Teuchos::RCP< const Map< int, GlobalOrdinal, Node > > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getMap ( ) const
inlinevirtual

The Map describing the parallel distribution of this object.

Implements Xpetra::DistObject< int, int, long long, EpetraNode >.

Definition at line 994 of file Xpetra_EpetraIntVector.hpp.

◆ doImport() [1/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::doImport ( const DistObject< int, int, GlobalOrdinal, Node > & source,
const Import< int, GlobalOrdinal, Node > & importer,
CombineMode CM )
inlinevirtual

Import data into this object using an Import object ("forward mode").

Implements Xpetra::DistObject< int, int, long long, EpetraNode >.

Definition at line 999 of file Xpetra_EpetraIntVector.hpp.

◆ doExport() [1/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::doExport ( const DistObject< int, LocalOrdinal, GlobalOrdinal, Node > & source,
const Import< int, GlobalOrdinal, Node > & importer,
CombineMode CM )
inlinevirtual

Export data into this object using an Import object ("reverse mode").

Implements Xpetra::DistObject< int, int, long long, EpetraNode >.

Definition at line 1011 of file Xpetra_EpetraIntVector.hpp.

◆ doImport() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::doImport ( const DistObject< int, LocalOrdinal, GlobalOrdinal, Node > & source,
const Export< int, GlobalOrdinal, Node > & exporter,
CombineMode CM )
inlinevirtual

Import data into this object using an Export object ("reverse mode").

Implements Xpetra::DistObject< int, int, long long, EpetraNode >.

Definition at line 1023 of file Xpetra_EpetraIntVector.hpp.

◆ doExport() [2/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::doExport ( const DistObject< int, LocalOrdinal, GlobalOrdinal, Node > & source,
const Export< int, GlobalOrdinal, Node > & exporter,
CombineMode CM )
inlinevirtual

Export data into this object using an Export object ("forward mode").

Implements Xpetra::DistObject< int, int, long long, EpetraNode >.

Definition at line 1035 of file Xpetra_EpetraIntVector.hpp.

◆ replaceMap() [1/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::replaceMap ( const RCP< const Map< int, GlobalOrdinal, Node > > & )
inlinevirtual

◆ assign() [1/2]

virtual void Xpetra::EpetraIntVectorT< long long, EpetraNode >::assign ( const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & rhs)
inlineprotectedvirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 1055 of file Xpetra_EpetraIntVector.hpp.

◆ dot() [3/4]

int Xpetra::EpetraIntVectorT< long long, EpetraNode >::dot ( const Vector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > & a) const
inlinevirtual

TODO missing comment.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 96 of file Xpetra_EpetraIntVector.hpp.

◆ dot() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::dot ( const MultiVector< int, int, GlobalOrdinal, EpetraNode > & A,
const Teuchos::ArrayView< int > & dots ) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 176 of file Xpetra_EpetraIntVector.hpp.

◆ norm1() [3/4]

Teuchos::ScalarTraits< int >::magnitudeType Xpetra::EpetraIntVectorT< long long, EpetraNode >::norm1 ( ) const
inlinevirtual

Return 1-norm of this Vector.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 100 of file Xpetra_EpetraIntVector.hpp.

◆ norm1() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::norm1 ( const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > & norms) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 211 of file Xpetra_EpetraIntVector.hpp.

◆ norm2() [3/4]

Teuchos::ScalarTraits< int >::magnitudeType Xpetra::EpetraIntVectorT< long long, EpetraNode >::norm2 ( ) const
inlinevirtual

Compute 2-norm of this Vector.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 104 of file Xpetra_EpetraIntVector.hpp.

◆ norm2() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::norm2 ( const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > & norms) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 214 of file Xpetra_EpetraIntVector.hpp.

◆ normInf() [3/4]

Teuchos::ScalarTraits< int >::magnitudeType Xpetra::EpetraIntVectorT< long long, EpetraNode >::normInf ( ) const
inlinevirtual

Compute Inf-norm of this Vector.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 107 of file Xpetra_EpetraIntVector.hpp.

◆ normInf() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::normInf ( const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > & norms) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 217 of file Xpetra_EpetraIntVector.hpp.

◆ meanValue() [3/4]

int Xpetra::EpetraIntVectorT< long long, EpetraNode >::meanValue ( ) const
inlinevirtual

Compute mean (average) value of this Vector.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 110 of file Xpetra_EpetraIntVector.hpp.

◆ meanValue() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::meanValue ( const Teuchos::ArrayView< int > & means) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 220 of file Xpetra_EpetraIntVector.hpp.

◆ maxValue() [3/4]

int Xpetra::EpetraIntVectorT< long long, EpetraNode >::maxValue ( ) const
inline

Compute max value of this Vector.

Definition at line 113 of file Xpetra_EpetraIntVector.hpp.

◆ maxValue() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::maxValue ( const Teuchos::ArrayView< int > & maxs) const
inline

Compute max value of each vector in multi-vector.

Definition at line 223 of file Xpetra_EpetraIntVector.hpp.

◆ replaceGlobalValue() [3/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::replaceGlobalValue ( GlobalOrdinal globalRow,
const Scalar & value )
inlinevirtual

Replace current value at the specified location with specified value.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 122 of file Xpetra_EpetraIntVector.hpp.

◆ replaceGlobalValue() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::replaceGlobalValue ( GlobalOrdinal globalRow,
size_t vectorIndex,
const Scalar & value )
inlinevirtual

Replace value, using global (row) index.

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 240 of file Xpetra_EpetraIntVector.hpp.

◆ sumIntoGlobalValue() [3/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::sumIntoGlobalValue ( GlobalOrdinal globalRow,
const Scalar & value )
inlinevirtual

Adds specified value to existing value at the specified location.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 125 of file Xpetra_EpetraIntVector.hpp.

◆ sumIntoGlobalValue() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::sumIntoGlobalValue ( GlobalOrdinal globalRow,
size_t vectorIndex,
const Scalar & value )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 243 of file Xpetra_EpetraIntVector.hpp.

◆ replaceLocalValue() [3/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::replaceLocalValue ( LocalOrdinal myRow,
const Scalar & value )
inlinevirtual

Replace current value at the specified location with specified values.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 128 of file Xpetra_EpetraIntVector.hpp.

◆ replaceLocalValue() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::replaceLocalValue ( LocalOrdinal myRow,
size_t vectorIndex,
const Scalar & value )
inlinevirtual

Replace value, using local (row) index.

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 246 of file Xpetra_EpetraIntVector.hpp.

◆ sumIntoLocalValue() [3/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::sumIntoLocalValue ( LocalOrdinal myRow,
const Scalar & value )
inlinevirtual

Adds specified value to existing value at the specified location.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 131 of file Xpetra_EpetraIntVector.hpp.

◆ sumIntoLocalValue() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::sumIntoLocalValue ( LocalOrdinal myRow,
size_t vectorIndex,
const Scalar & value )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 249 of file Xpetra_EpetraIntVector.hpp.

◆ putScalar() [2/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::putScalar ( const int & value)
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 134 of file Xpetra_EpetraIntVector.hpp.

◆ randomize() [3/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::randomize ( bool bUseXpetraImplementation = true)
inlinevirtual

Set multi-vector values to random numbers.

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 137 of file Xpetra_EpetraIntVector.hpp.

◆ randomize() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::randomize ( const Scalar & ,
const Scalar & ,
bool bUseXpetraImplementation = true )
inlinevirtual

Set multi-vector values to random numbers.

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 140 of file Xpetra_EpetraIntVector.hpp.

◆ setSeed() [2/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::setSeed ( unsigned int seed)
inlinevirtual

Set seed for Random function.

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 145 of file Xpetra_EpetraIntVector.hpp.

◆ getVector() [2/2]

Teuchos::RCP< const Vector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getVector ( size_t j) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 154 of file Xpetra_EpetraIntVector.hpp.

◆ getVectorNonConst() [2/2]

Teuchos::RCP< Vector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getVectorNonConst ( size_t j)
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 159 of file Xpetra_EpetraIntVector.hpp.

◆ getData() [2/2]

Teuchos::ArrayRCP< const int > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getData ( size_t j) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 165 of file Xpetra_EpetraIntVector.hpp.

◆ getDataNonConst() [2/2]

Teuchos::ArrayRCP< int > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getDataNonConst ( size_t j)
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 169 of file Xpetra_EpetraIntVector.hpp.

◆ abs() [2/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::abs ( const MultiVector< int, int, GlobalOrdinal, EpetraNode > & A)
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 179 of file Xpetra_EpetraIntVector.hpp.

◆ reciprocal() [2/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::reciprocal ( const MultiVector< int, int, GlobalOrdinal, EpetraNode > & A)
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 182 of file Xpetra_EpetraIntVector.hpp.

◆ scale() [3/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::scale ( const int & alpha)
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 185 of file Xpetra_EpetraIntVector.hpp.

◆ scale() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::scale ( Teuchos::ArrayView< const int > alpha)
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 188 of file Xpetra_EpetraIntVector.hpp.

◆ update() [3/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::update ( const int & alpha,
const MultiVector< int, int, GlobalOrdinal, EpetraNode > & A,
const int & beta )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 194 of file Xpetra_EpetraIntVector.hpp.

◆ update() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::update ( const int & alpha,
const MultiVector< int, int, GlobalOrdinal, EpetraNode > & A,
const int & beta,
const MultiVector< int, int, GlobalOrdinal, EpetraNode > & B,
const int & gamma )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 202 of file Xpetra_EpetraIntVector.hpp.

◆ multiply() [2/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::multiply ( Teuchos::ETransp transA,
Teuchos::ETransp transB,
const int & alpha,
const MultiVector< int, int, GlobalOrdinal, EpetraNode > & A,
const MultiVector< int, int, GlobalOrdinal, EpetraNode > & B,
const int & beta )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 226 of file Xpetra_EpetraIntVector.hpp.

◆ elementWiseMultiply() [2/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::elementWiseMultiply ( int scalarAB,
const Vector< int, int, GlobalOrdinal, EpetraNode > & A,
const MultiVector< int, int, GlobalOrdinal, EpetraNode > & B,
int scalarThis )
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 229 of file Xpetra_EpetraIntVector.hpp.

◆ getNumVectors() [2/2]

size_t Xpetra::EpetraIntVectorT< long long, EpetraNode >::getNumVectors ( ) const
inlinevirtual

Returns the number of vectors in the multi-vector.

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 257 of file Xpetra_EpetraIntVector.hpp.

◆ getLocalLength() [2/2]

size_t Xpetra::EpetraIntVectorT< long long, EpetraNode >::getLocalLength ( ) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 261 of file Xpetra_EpetraIntVector.hpp.

◆ getGlobalLength() [2/2]

global_size_t Xpetra::EpetraIntVectorT< long long, EpetraNode >::getGlobalLength ( ) const
inlinevirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 264 of file Xpetra_EpetraIntVector.hpp.

◆ isSameSize() [2/2]

bool Xpetra::EpetraIntVectorT< long long, EpetraNode >::isSameSize ( const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > & vec) const
inlinevirtual

Checks to see if the local length, number of vectors and size of Scalar type match.

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 267 of file Xpetra_EpetraIntVector.hpp.

◆ description() [2/2]

std::string Xpetra::EpetraIntVectorT< long long, EpetraNode >::description ( ) const
inlinevirtual

Return a simple one-line description of this object.

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 275 of file Xpetra_EpetraIntVector.hpp.

◆ describe() [2/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::describe ( Teuchos::FancyOStream & out,
const Teuchos::EVerbosityLevel verbLevel = Teuchos::Describable::verbLevel_default ) const
inlinevirtual

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

Implements Xpetra::Vector< int, int, long long, EpetraNode >.

Definition at line 280 of file Xpetra_EpetraIntVector.hpp.

◆ getEpetra_IntVector() [2/2]

RCP< Epetra_IntVector > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getEpetra_IntVector ( ) const
inline

Definition at line 284 of file Xpetra_EpetraIntVector.hpp.

◆ getComm() [2/2]

const RCP< const Comm< int > > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getComm ( ) const
inline

Definition at line 286 of file Xpetra_EpetraIntVector.hpp.

◆ getMap() [2/2]

Teuchos::RCP< const Map< int, GlobalOrdinal, EpetraNode > > Xpetra::EpetraIntVectorT< long long, EpetraNode >::getMap ( ) const
inlinevirtual

The Map describing the parallel distribution of this object.

Implements Xpetra::DistObject< int, int, long long, EpetraNode >.

Definition at line 291 of file Xpetra_EpetraIntVector.hpp.

◆ doImport() [3/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::doImport ( const DistObject< int, int, GlobalOrdinal, EpetraNode > & source,
const Import< int, GlobalOrdinal, EpetraNode > & importer,
CombineMode CM )
inlinevirtual

Import data into this object using an Import object ("forward mode").

Implements Xpetra::DistObject< int, int, long long, EpetraNode >.

Definition at line 295 of file Xpetra_EpetraIntVector.hpp.

◆ doImport() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::doImport ( const DistObject< int, LocalOrdinal, GlobalOrdinal, EpetraNode > & source,
const Export< int, GlobalOrdinal, EpetraNode > & exporter,
CombineMode CM )
inlinevirtual

Import data into this object using an Export object ("reverse mode").

Implements Xpetra::DistObject< int, int, long long, EpetraNode >.

Definition at line 301 of file Xpetra_EpetraIntVector.hpp.

◆ doExport() [3/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::doExport ( const DistObject< int, LocalOrdinal, GlobalOrdinal, EpetraNode > & dest,
const Import< int, GlobalOrdinal, EpetraNode > & importer,
CombineMode CM )
inlinevirtual

Export data into this object using an Import object ("reverse mode").

Implements Xpetra::DistObject< int, int, long long, EpetraNode >.

Definition at line 298 of file Xpetra_EpetraIntVector.hpp.

◆ doExport() [4/4]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::doExport ( const DistObject< int, LocalOrdinal, GlobalOrdinal, EpetraNode > & dest,
const Export< int, GlobalOrdinal, EpetraNode > & exporter,
CombineMode CM )
inlinevirtual

Export data into this object using an Export object ("forward mode").

Implements Xpetra::DistObject< int, int, long long, EpetraNode >.

Definition at line 304 of file Xpetra_EpetraIntVector.hpp.

◆ replaceMap() [2/2]

void Xpetra::EpetraIntVectorT< long long, EpetraNode >::replaceMap ( const RCP< const Map< int, GlobalOrdinal, EpetraNode > > & map)
inlinevirtual

◆ assign() [2/2]

virtual void Xpetra::EpetraIntVectorT< long long, EpetraNode >::assign ( const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > & rhs)
inlineprotectedvirtual

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

Implements Xpetra::MultiVector< int, int, long long, EpetraNode >.

Definition at line 315 of file Xpetra_EpetraIntVector.hpp.

Member Data Documentation

◆ vec_

RCP< Epetra_IntVector > Xpetra::EpetraIntVectorT< long long, EpetraNode >::vec_
private

The Epetra_IntVector which this class wraps.

Definition at line 1090 of file Xpetra_EpetraIntVector.hpp.


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