Xpetra Version of the Day
Loading...
Searching...
No Matches
Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node > Class Template Reference

#include <Xpetra_EpetraIntVector.hpp>

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

Private Types

typedef int Scalar
 
typedef int LocalOrdinal
 
typedef EpetraGlobalOrdinal GlobalOrdinal
 

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 > &a) 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 > &A, const Teuchos::ArrayView< int > &dots) 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 > &A)
 Puts element-wise absolute values of input Multi-vector in target: A = abs(this)
 
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).
 
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, Node > &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, 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.
 
void norm1 (const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &norms) const
 Compute 1-norm of each vector in multi-vector.
 
void norm2 (const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &norms) const
 Compute 2-norm of each vector in multi-vector.
 
void normInf (const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &norms) const
 Compute Inf-norm of each vector in multi-vector.
 
void meanValue (const Teuchos::ArrayView< int > &means) const
 Compute mean (average) value of each vector in multi-vector.
 
void maxValue (const Teuchos::ArrayView< int > &maxs) const
 Compute max value of each vector in multi-vector.
 
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).
 
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.
 

Post-construction modification routines

void replaceGlobalValue (GlobalOrdinal globalRow, const Scalar &value)
 Replace current value at the specified location with specified value.
 
void sumIntoGlobalValue (GlobalOrdinal globalRow, const Scalar &value)
 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 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.
 
void replaceGlobalValue (GlobalOrdinal globalRow, size_t vectorIndex, const Scalar &value)
 Replace value, using global (row) index.
 
void sumIntoGlobalValue (GlobalOrdinal globalRow, size_t vectorIndex, const Scalar &value)
 Add value to existing value, using global (row) index.
 
void replaceLocalValue (LocalOrdinal myRow, size_t vectorIndex, const Scalar &value)
 Replace value, using local (row) index.
 
void sumIntoLocalValue (LocalOrdinal myRow, size_t vectorIndex, const Scalar &value)
 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 j) const
 Return a Vector which is a const view of column j.
 
Teuchos::RCP< Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > 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, Node > &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, 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)
 
void doExport (const DistObject< int, LocalOrdinal, GlobalOrdinal, Node > &dest, const Import< int, GlobalOrdinal, Node > &importer, CombineMode CM)
 
void doImport (const DistObject< int, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< int, GlobalOrdinal, Node > &exporter, CombineMode CM)
 
void doExport (const DistObject< int, LocalOrdinal, GlobalOrdinal, Node > &dest, const Export< int, GlobalOrdinal, Node > &exporter, CombineMode CM)
 
void replaceMap (const RCP< const Map< int, GlobalOrdinal, Node > > &map)
 
virtual void assign (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &rhs)
 Implementation of the assignment operator (operator=); does a deep copy.
 

Additional Inherited Members

- Public Types inherited from Xpetra::Vector< int, int, EpetraGlobalOrdinal, Node >
using scalar_type = int
 
using local_ordinal_type = int
 
using global_ordinal_type = EpetraGlobalOrdinal
 
using node_type = Node
 
typedef Xpetra::MultiVector< int, int, EpetraGlobalOrdinal, Node >::dual_view_type dual_view_type
 
- Public Types inherited from Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >
typedef Scalar scalar_type
 
typedef LocalOrdinal local_ordinal_type
 
typedef GlobalOrdinal global_ordinal_type
 
typedef Node node_type
 
using impl_scalar_type = typename Kokkos::Details::ArithTraits< Scalar >::val_type
 
using dual_view_type = Kokkos::DualView< impl_scalar_type **, Kokkos::LayoutStride, typename node_type::device_type, Kokkos::MemoryUnmanaged >
 
using dual_view_type_const = Kokkos::DualView< const impl_scalar_type **, Kokkos::LayoutStride, typename node_type::device_type, Kokkos::MemoryUnmanaged >
 
using host_execution_space = typename dual_view_type::host_mirror_space
 
using dev_execution_space = typename dual_view_type::t_dev::execution_space
 
- Public Member Functions inherited from Xpetra::Vector< int, int, EpetraGlobalOrdinal, Node >
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.
 
- Public Member Functions inherited from Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >
virtual void randomize (const Scalar &minVal, const Scalar &maxVal, bool bUseXpetraImplementation=false)=0
 Set multi-vector values to random numbers.
 
virtual void Xpetra_randomize ()
 Set multi-vector values to random numbers. XPetra implementation.
 
virtual void Xpetra_randomize (const Scalar &minVal, const Scalar &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_dev_const_um getDeviceLocalView (Access::ReadOnlyStruct) const
 
virtual dual_view_type::t_host_um getHostLocalView (Access::OverwriteAllStruct) const
 
virtual dual_view_type::t_dev_um getDeviceLocalView (Access::OverwriteAllStruct) const
 
virtual dual_view_type::t_host_um getHostLocalView (Access::ReadWriteStruct) const
 
virtual dual_view_type::t_dev_um getDeviceLocalView (Access::ReadWriteStruct) const
 
virtual ~MultiVector ()
 Destructor.
 
MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & operator= (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &rhs)
 Assignment operator: Does a deep copy.
 
virtual void replaceGlobalValue (GlobalOrdinal globalRow, size_t vectorIndex, const Scalar &value)=0
 Replace value, using global (row) index.
 
virtual void sumIntoGlobalValue (GlobalOrdinal globalRow, size_t vectorIndex, const Scalar &value)=0
 Add value to existing value, using global (row) index.
 
virtual void replaceLocalValue (LocalOrdinal myRow, size_t vectorIndex, const Scalar &value)=0
 Replace value, using local (row) index.
 
virtual void sumIntoLocalValue (LocalOrdinal myRow, size_t vectorIndex, const Scalar &value)=0
 Add value to existing value, using local (row) index.
 
virtual void putScalar (const Scalar &value)=0
 Set all values in the multivector with the given value.
 
virtual void dot (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const Teuchos::ArrayView< Scalar > &dots) const =0
 Compute dot product of each corresponding pair of vectors, dots[i] = this[i].dot(A[i]).
 
virtual void abs (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A)=0
 Put element-wise absolute values of input Multi-vector in target: A = abs(this).
 
virtual void reciprocal (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A)=0
 Put element-wise reciprocal values of input Multi-vector in target, this(i,j) = 1/A(i,j).
 
virtual void scale (const Scalar &alpha)=0
 Scale the current values of a multi-vector, this = alpha*this.
 
virtual void scale (Teuchos::ArrayView< const Scalar > alpha)=0
 Scale the current values of a multi-vector, this[j] = alpha[j]*this[j].
 
virtual void update (const Scalar &alpha, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const Scalar &beta)=0
 Update multi-vector values with scaled values of A, this = beta*this + alpha*A.
 
virtual 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)=0
 Update multi-vector with scaled values of A and B, this = gamma*this + alpha*A + beta*B.
 
virtual void norm1 (const Teuchos::ArrayView< typename Teuchos::ScalarTraits< Scalar >::magnitudeType > &norms) const =0
 Compute 1-norm of each vector in multi-vector.
 
virtual void norm2 (const Teuchos::ArrayView< typename Teuchos::ScalarTraits< Scalar >::magnitudeType > &norms) const =0
 
virtual void normInf (const Teuchos::ArrayView< typename Teuchos::ScalarTraits< Scalar >::magnitudeType > &norms) const =0
 Compute Inf-norm of each vector in multi-vector.
 
virtual void meanValue (const Teuchos::ArrayView< Scalar > &means) const =0
 
virtual 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)=0
 Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B).
 
virtual void elementWiseMultiply (Scalar scalarAB, const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &B, Scalar scalarThis)=0
 Multiply a Vector A elementwise by a MultiVector B.
 
virtual bool isSameSize (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &vec) const =0
 
virtual void replaceMap (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map)=0
 
- Public Member Functions inherited from Xpetra::DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node >
virtual ~DistObject ()
 Destructor.
 
virtual void doImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)=0
 Import data into this object using an Import object ("forward mode").
 
virtual void beginImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Import data into this object using an Import object ("forward mode").
 
virtual void endImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Import data into this object using an Import object ("forward mode").
 
virtual void doExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)=0
 Export data into this object using an Export object ("forward mode").
 
virtual void beginExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Export data into this object using an Export object ("forward mode").
 
virtual void endExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Export data into this object using an Export object ("forward mode").
 
virtual void doImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)=0
 Import data into this object using an Export object ("reverse mode").
 
virtual void beginImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Import data into this object using an Export object ("reverse mode").
 
virtual void endImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Import data into this object using an Export object ("reverse mode").
 
virtual void doExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)=0
 Export data into this object using an Import object ("reverse mode").
 
virtual void beginExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Export data into this object using an Import object ("reverse mode").
 
virtual void endExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Export data into this object using an Import object ("reverse mode").
 
- Public Member Functions inherited from Teuchos::Describable
virtual std::string description () const
 
virtual void describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const
 
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)
 
virtual std::string description () const
 
virtual void describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const
 
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
 
- Protected Member Functions inherited from Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >
virtual void assign (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &rhs)=0
 Implementation of the assignment operator (operator=); does a deep copy.
 

Detailed Description

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

Definition at line 72 of file Xpetra_EpetraIntVector.hpp.

Member Typedef Documentation

◆ Scalar

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

Definition at line 75 of file Xpetra_EpetraIntVector.hpp.

◆ LocalOrdinal

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

Definition at line 76 of file Xpetra_EpetraIntVector.hpp.

◆ GlobalOrdinal

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

Definition at line 77 of file Xpetra_EpetraIntVector.hpp.

Constructor & Destructor Documentation

◆ EpetraIntVectorT()

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

Sets all vector entries to zero.

Definition at line 85 of file Xpetra_EpetraIntVector.hpp.

◆ ~EpetraIntVectorT()

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

Destructor.

Definition at line 88 of file Xpetra_EpetraIntVector.hpp.

Member Function Documentation

◆ dot() [1/2]

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

TODO missing comment.

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

Definition at line 96 of file Xpetra_EpetraIntVector.hpp.

◆ norm1() [1/2]

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

Return 1-norm of this Vector.

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

Definition at line 100 of file Xpetra_EpetraIntVector.hpp.

◆ norm2() [1/2]

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

Compute 2-norm of this Vector.

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

Definition at line 104 of file Xpetra_EpetraIntVector.hpp.

◆ normInf() [1/2]

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

Compute Inf-norm of this Vector.

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

Definition at line 107 of file Xpetra_EpetraIntVector.hpp.

◆ meanValue() [1/2]

template<class EpetraGlobalOrdinal , class Node >
int Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::meanValue ( ) const
inlinevirtual

Compute mean (average) value of this Vector.

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

Definition at line 110 of file Xpetra_EpetraIntVector.hpp.

◆ maxValue() [1/2]

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

Compute max value of this Vector.

Definition at line 113 of file Xpetra_EpetraIntVector.hpp.

◆ replaceGlobalValue() [1/2]

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

Replace current value at the specified location with specified value.

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

Definition at line 122 of file Xpetra_EpetraIntVector.hpp.

◆ sumIntoGlobalValue() [1/2]

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

Adds specified value to existing value at the specified location.

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

Definition at line 125 of file Xpetra_EpetraIntVector.hpp.

◆ replaceLocalValue() [1/2]

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

Replace current value at the specified location with specified values.

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

Definition at line 128 of file Xpetra_EpetraIntVector.hpp.

◆ sumIntoLocalValue() [1/2]

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

Adds specified value to existing value at the specified location.

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

Definition at line 131 of file Xpetra_EpetraIntVector.hpp.

◆ putScalar()

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

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

Definition at line 134 of file Xpetra_EpetraIntVector.hpp.

◆ randomize() [1/2]

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

Set multi-vector values to random numbers.

Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.

Definition at line 137 of file Xpetra_EpetraIntVector.hpp.

◆ randomize() [2/2]

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::randomize ( const Scalar ,
const Scalar ,
bool  bUseXpetraImplementation = true 
)
inline

Set multi-vector values to random numbers.

Definition at line 140 of file Xpetra_EpetraIntVector.hpp.

◆ setSeed()

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::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< Scalar, LocalOrdinal, GlobalOrdinal, Node >.

Definition at line 145 of file Xpetra_EpetraIntVector.hpp.

◆ getVector()

template<class EpetraGlobalOrdinal , class Node >
Teuchos::RCP< const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::getVector ( size_t  j) const
inlinevirtual

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

Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.

Definition at line 154 of file Xpetra_EpetraIntVector.hpp.

◆ getVectorNonConst()

template<class EpetraGlobalOrdinal , class Node >
Teuchos::RCP< Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::getVectorNonConst ( size_t  j)
inlinevirtual

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

Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.

Definition at line 159 of file Xpetra_EpetraIntVector.hpp.

◆ getData()

template<class EpetraGlobalOrdinal , class Node >
Teuchos::ArrayRCP< const int > Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::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< Scalar, LocalOrdinal, GlobalOrdinal, Node >.

Definition at line 165 of file Xpetra_EpetraIntVector.hpp.

◆ getDataNonConst()

template<class EpetraGlobalOrdinal , class Node >
Teuchos::ArrayRCP< int > Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::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< Scalar, LocalOrdinal, GlobalOrdinal, Node >.

Definition at line 169 of file Xpetra_EpetraIntVector.hpp.

◆ dot() [2/2]

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

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

Definition at line 176 of file Xpetra_EpetraIntVector.hpp.

◆ abs()

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

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

Definition at line 179 of file Xpetra_EpetraIntVector.hpp.

◆ reciprocal()

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

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

Definition at line 182 of file Xpetra_EpetraIntVector.hpp.

◆ scale() [1/2]

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

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

Definition at line 185 of file Xpetra_EpetraIntVector.hpp.

◆ scale() [2/2]

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

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

Definition at line 188 of file Xpetra_EpetraIntVector.hpp.

◆ update() [1/2]

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

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

Definition at line 194 of file Xpetra_EpetraIntVector.hpp.

◆ update() [2/2]

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

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

Definition at line 202 of file Xpetra_EpetraIntVector.hpp.

◆ norm1() [2/2]

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::norm1 ( const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &  norms) const
inline

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

Definition at line 211 of file Xpetra_EpetraIntVector.hpp.

◆ norm2() [2/2]

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::norm2 ( const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &  norms) const
inline

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

Definition at line 214 of file Xpetra_EpetraIntVector.hpp.

◆ normInf() [2/2]

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::normInf ( const Teuchos::ArrayView< Teuchos::ScalarTraits< int >::magnitudeType > &  norms) const
inline

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

Definition at line 217 of file Xpetra_EpetraIntVector.hpp.

◆ meanValue() [2/2]

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

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

Definition at line 220 of file Xpetra_EpetraIntVector.hpp.

◆ maxValue() [2/2]

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::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.

◆ multiply()

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::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 
)
inline

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

Definition at line 226 of file Xpetra_EpetraIntVector.hpp.

◆ elementWiseMultiply()

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

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

Definition at line 229 of file Xpetra_EpetraIntVector.hpp.

◆ replaceGlobalValue() [2/2]

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

Replace value, using global (row) index.

Definition at line 240 of file Xpetra_EpetraIntVector.hpp.

◆ sumIntoGlobalValue() [2/2]

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

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

Definition at line 243 of file Xpetra_EpetraIntVector.hpp.

◆ replaceLocalValue() [2/2]

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

Replace value, using local (row) index.

Definition at line 246 of file Xpetra_EpetraIntVector.hpp.

◆ sumIntoLocalValue() [2/2]

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

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

Definition at line 249 of file Xpetra_EpetraIntVector.hpp.

◆ getNumVectors()

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

Returns the number of vectors in the multi-vector.

Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.

Definition at line 257 of file Xpetra_EpetraIntVector.hpp.

◆ getLocalLength()

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

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

Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.

Definition at line 261 of file Xpetra_EpetraIntVector.hpp.

◆ getGlobalLength()

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

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

Implements Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >.

Definition at line 264 of file Xpetra_EpetraIntVector.hpp.

◆ isSameSize()

template<class EpetraGlobalOrdinal , class Node >
bool Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::isSameSize ( const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  vec) const
inline

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

Definition at line 267 of file Xpetra_EpetraIntVector.hpp.

◆ description()

template<class EpetraGlobalOrdinal , class Node >
std::string Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::description ( ) const
inlinevirtual

Return a simple one-line description of this object.

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

Definition at line 275 of file Xpetra_EpetraIntVector.hpp.

◆ describe()

template<class EpetraGlobalOrdinal , class Node >
void Xpetra::EpetraIntVectorT< EpetraGlobalOrdinal, Node >::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, EpetraGlobalOrdinal, Node >.

Definition at line 280 of file Xpetra_EpetraIntVector.hpp.

◆ getEpetra_IntVector()

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

Definition at line 284 of file Xpetra_EpetraIntVector.hpp.

◆ getComm()

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

Definition at line 286 of file Xpetra_EpetraIntVector.hpp.

◆ getMap()

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

The Map describing the parallel distribution of this object.

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

Definition at line 291 of file Xpetra_EpetraIntVector.hpp.

◆ doImport() [1/2]

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

Definition at line 295 of file Xpetra_EpetraIntVector.hpp.

◆ doExport() [1/2]

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

Definition at line 298 of file Xpetra_EpetraIntVector.hpp.

◆ doImport() [2/2]

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

Definition at line 301 of file Xpetra_EpetraIntVector.hpp.

◆ doExport() [2/2]

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

Definition at line 304 of file Xpetra_EpetraIntVector.hpp.

◆ replaceMap()

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

Definition at line 307 of file Xpetra_EpetraIntVector.hpp.

◆ assign()

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

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

Definition at line 315 of file Xpetra_EpetraIntVector.hpp.


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