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

#include <Xpetra_EpetraVector.hpp>

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

Public Member Functions

void norm1 (const Teuchos::ArrayView< Teuchos::ScalarTraits< Scalar >::magnitudeType > &norms) const
 Compute 1-norm of each vector in multi-vector.
 
void norm2 (const Teuchos::ArrayView< Teuchos::ScalarTraits< Scalar >::magnitudeType > &norms) const
 
void normInf (const Teuchos::ArrayView< Teuchos::ScalarTraits< Scalar >::magnitudeType > &norms) const
 Compute Inf-norm of each vector in multi-vector.
 
void meanValue (const Teuchos::ArrayView< Scalar > &means) const
 Compute mean (average) value of each vector in multi-vector. The outcome of this routine is undefined for non-floating point scalar types (e.g., int).
 
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.
 
void dot (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &A, const Teuchos::ArrayView< Scalar > &dots) const
 Compute the dot product of each corresponding pair of vectors (columns) in A and B.
 
- Public Member Functions inherited from Xpetra::Vector< double, 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 double &minVal, const double &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< double, int, long long, EpetraNode > & operator= (const MultiVector< double, int, long long, EpetraNode > &rhs)
 Assignment operator: Does a deep copy.
 
virtual ~DistObject ()
 Destructor.
 
virtual void beginImport (const DistObject< double, 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< double, 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< double, 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< double, 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< double, 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< double, 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< double, 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< double, 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
 
 EpetraMultiVectorT (const RCP< Epetra_MultiVector > &vec)
 EpetraMultiVectorT constructor to wrap a Epetra_MultiVector object.
 
RCP< Epetra_MultiVectorgetEpetra_MultiVector () const
 Get the underlying Epetra multivector.
 
void setSeed (unsigned int seed)
 Set seed for Random function.
 
 EpetraMultiVectorT (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map, size_t NumVectors, bool zeroOut=true)
 Basic MultiVector constuctor.
 
 EpetraMultiVectorT (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source)
 MultiVector copy constructor.
 
 EpetraMultiVectorT (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map, const Teuchos::ArrayView< const Teuchos::ArrayView< const Scalar > > &ArrayOfPtrs, size_t NumVectors)
 Set multi-vector values from array of pointers using Teuchos memory management classes. (copy).
 
virtual ~EpetraMultiVectorT ()
 MultiVector destructor.
 
void putScalar (const Scalar &value)
 Set all values in the multivector with the given value.
 
Teuchos::RCP< const Vector< double, int, long long, EpetraNode > > getVector (size_t j) const
 Return a Vector which is a const view of column j.
 
Teuchos::RCP< Vector< double, int, long long, EpetraNode > > getVectorNonConst (size_t j)
 Return a Vector which is a nonconst view of column j.
 
Teuchos::ArrayRCP< const ScalargetData (size_t j) const
 Const view of the local values in a particular vector of this multivector.
 
Teuchos::ArrayRCP< ScalargetDataNonConst (size_t j)
 View of the local values in a particular vector of this multivector.
 
void abs (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A)
 Put element-wise absolute values of input Multi-vector in target: A = abs(this).
 
void reciprocal (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A)
 Put element-wise reciprocal values of input Multi-vector in target, this(i,j) = 1/A(i,j).
 
void scale (const Scalar &alpha)
 Scale in place: this = alpha*this.
 
void scale (Teuchos::ArrayView< const Scalar > alpha)
 Scale the current values of a multi-vector, this[j] = alpha[j]*this[j].
 
void update (const Scalar &alpha, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const Scalar &beta)
 Update: this = beta*this + alpha*A.
 
void update (const Scalar &alpha, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const Scalar &beta, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &B, const Scalar &gamma)
 Update: this = gamma*this + alpha*A + beta*B.
 
void multiply (Teuchos::ETransp transA, Teuchos::ETransp transB, const Scalar &alpha, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &B, const Scalar &beta)
 Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B).
 
void elementWiseMultiply (Scalar scalarAB, const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &A, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &B, Scalar scalarThis)
 Multiply a Vector A elementwise by a MultiVector B.
 
size_t getNumVectors () const
 Number of columns in the multivector.
 
size_t getLocalLength () const
 Local number of rows on the calling process.
 
global_size_t getGlobalLength () const
 Global number of rows in the multivector.
 
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.
 
void randomize (bool bUseXpetraImplementation=false)
 Set multi-vector values to random numbers.
 
void randomize (const Scalar &minVal, const Scalar &maxVal, bool bUseXpetraImplementation=false)
 Set multi-vector values to random numbers.
 
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getMap () const
 Implements DistObject interface.
 
void doImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Import.
 
void doExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &dest, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Export.
 
void doImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Import (using an Exporter).
 
void doExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &dest, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Export (using an Importer).
 
void replaceMap (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map)
 Replace the underlying Map in place.
 
 EpetraMultiVectorT (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, EpetraNode > > &map, size_t NumVectors, bool zeroOut=true)
 Basic MultiVector constuctor.
 
 EpetraMultiVectorT (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &source, const Teuchos::DataAccess copyOrView=Teuchos::Copy)
 MultiVector copy constructor.
 
 EpetraMultiVectorT (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, EpetraNode > > &map, const Teuchos::ArrayView< const Teuchos::ArrayView< const Scalar > > &ArrayOfPtrs, size_t NumVectors)
 Set multi-vector values from array of pointers using Teuchos memory management classes. (copy).
 
virtual ~EpetraMultiVectorT ()
 MultiVector destructor.
 
 EpetraMultiVectorT (const RCP< Epetra_MultiVector > &vec)
 EpetraMultiVectorT constructor to wrap a Epetra_MultiVector object.
 
RCP< Epetra_MultiVectorgetEpetra_MultiVector () const
 Get the underlying Epetra multivector.
 
void setSeed (unsigned int seed)
 Set seed for Random function.
 
void putScalar (const Scalar &value)
 Set all values in the multivector with the given value.
 
Teuchos::RCP< const Vector< double, int, GlobalOrdinal, EpetraNode > > getVector (size_t j) const
 Return a Vector which is a const view of column j.
 
Teuchos::RCP< Vector< double, int, GlobalOrdinal, EpetraNode > > getVectorNonConst (size_t j)
 Return a Vector which is a nonconst view of column j.
 
Teuchos::ArrayRCP< const ScalargetData (size_t j) const
 Const view of the local values in a particular vector of this multivector.
 
Teuchos::ArrayRCP< ScalargetDataNonConst (size_t j)
 View of the local values in a particular vector of this multivector.
 
void abs (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &A)
 Put element-wise absolute values of input Multi-vector in target: A = abs(this).
 
void reciprocal (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &A)
 Put element-wise reciprocal values of input Multi-vector in target, this(i,j) = 1/A(i,j).
 
void scale (const Scalar &alpha)
 Scale in place: this = alpha*this.
 
void scale (Teuchos::ArrayView< const Scalar > alpha)
 Scale the current values of a multi-vector, this[j] = alpha[j]*this[j].
 
void update (const Scalar &alpha, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &A, const Scalar &beta)
 Update: this = beta*this + alpha*A.
 
void update (const Scalar &alpha, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &A, const Scalar &beta, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &B, const Scalar &gamma)
 Update: this = gamma*this + alpha*A + beta*B.
 
void multiply (Teuchos::ETransp transA, Teuchos::ETransp transB, const Scalar &alpha, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &A, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &B, const Scalar &beta)
 Matrix-matrix multiplication: this = beta*this + alpha*op(A)*op(B).
 
void elementWiseMultiply (Scalar scalarAB, const Vector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &A, const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &B, Scalar scalarThis)
 Multiply a Vector A elementwise by a MultiVector B.
 
size_t getNumVectors () const
 Number of columns in the multivector.
 
size_t getLocalLength () const
 Local number of rows on the calling process.
 
global_size_t getGlobalLength () const
 Global number of rows in the multivector.
 
bool isSameSize (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &vec) const
 
void randomize (bool bUseXpetraImplementation=false)
 Set multi-vector values to random numbers.
 
void randomize (const Scalar &minVal, const Scalar &maxVal, bool bUseXpetraImplementation=false)
 Set multi-vector values to random numbers.
 
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, EpetraNode > > getMap () const
 Implements DistObject interface.
 
void doImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &source, const Import< LocalOrdinal, GlobalOrdinal, EpetraNode > &importer, CombineMode CM)
 Import.
 
void doImport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &source, const Export< LocalOrdinal, GlobalOrdinal, EpetraNode > &exporter, CombineMode CM)
 Import (using an Exporter).
 
void doExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &dest, const Import< LocalOrdinal, GlobalOrdinal, EpetraNode > &importer, CombineMode CM)
 Export.
 
void doExport (const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &dest, const Export< LocalOrdinal, GlobalOrdinal, EpetraNode > &exporter, CombineMode CM)
 Export (using an Importer).
 
void replaceMap (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, EpetraNode > > &map)
 Replace the underlying Map in place.
 

Private Types

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

Xpetra specific

const RCP< const Epetra_MultiVectorinternalRefToBaseMV_
 
 EpetraVectorT (const Teuchos::RCP< Epetra_Vector > &vec)
 EpetraMultiVectorT constructor to wrap a Epetra_Vector object.
 
Epetra_VectorgetEpetra_Vector () const
 Get the underlying Epetra vector.
 
 EpetraVectorT (const RCP< Epetra_MultiVector > &mv, size_t j)
 

Xpetra specific

const RCP< const Epetra_MultiVectorinternalRefToBaseMV_
 
 EpetraVectorT (const Teuchos::RCP< Epetra_Vector > &vec)
 EpetraMultiVectorT constructor to wrap a Epetra_Vector object.
 
 EpetraVectorT (const RCP< Epetra_MultiVector > &mv, size_t j)
 
Epetra_VectorgetEpetra_Vector () const
 Get the underlying Epetra vector.
 

Constructor/Destructor Methods

 EpetraVectorT (const Teuchos::RCP< const Map< int, GlobalOrdinal, Node > > &map, bool zeroOut=true)
 Sets all vector entries to zero.
 
virtual ~EpetraVectorT ()
 Vector copy constructor.
 

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.
 

Mathematical methods

Scalar dot (const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &a) const
 Computes dot product of this Vector against input Vector x.
 
Teuchos::ScalarTraits< Scalar >::magnitudeType norm1 () const
 Return 1-norm of this Vector.
 
Teuchos::ScalarTraits< Scalar >::magnitudeType norm2 () const
 Compute 2-norm of this Vector.
 
Teuchos::ScalarTraits< Scalar >::magnitudeType normInf () const
 Compute Inf-norm of this Vector.
 
Scalar meanValue () const
 Compute Weighted 2-norm (RMS Norm) of this Vector.
 

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.
 

Mathematical methods

Teuchos::ScalarTraits< Scalar >::magnitudeType norm1 () const
 Return 1-norm of this Vector.
 
Teuchos::ScalarTraits< Scalar >::magnitudeType norm2 () const
 Compute 2-norm of this Vector.
 
Teuchos::ScalarTraits< Scalar >::magnitudeType normInf () const
 Compute Inf-norm of this Vector.
 
Scalar meanValue () const
 Compute Weighted 2-norm (RMS Norm) of this Vector.
 
Scalar dot (const Vector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &a) const
 Computes dot product of this Vector against input Vector x.
 

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.
 

Constructor/Destructor Methods

 EpetraVectorT (const RCP< const Map< LocalOrdinal, GlobalOrdinal, EpetraNode > > &map, bool zeroOut=true)
 Sets all vector entries to zero.
 
virtual ~EpetraVectorT ()
 Vector copy constructor.
 

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.
 

Additional Inherited Members

- Public Types inherited from Xpetra::Vector< double, int, long long, EpetraNode >
using scalar_type
 
using local_ordinal_type
 
using global_ordinal_type
 
using node_type
 
typedef Xpetra::MultiVector< double, int, long long, EpetraNode >::dual_view_type dual_view_type
 
- Public Types inherited from Xpetra::MultiVector< double, int, long long, EpetraNode >
typedef double 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
 
- Static Public Attributes inherited from Teuchos::Describable
static const EVerbosityLevel verbLevel_default
 
virtual void assign (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &rhs)
 Implementation of the assignment operator (operator=); does a deep copy.
 
virtual void assign (const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, EpetraNode > &rhs)
 Implementation of the assignment operator (operator=); does a deep copy.
 

Detailed Description

Definition at line 359 of file Xpetra_EpetraVector.hpp.

Member Typedef Documentation

◆ Scalar [1/2]

typedef double Xpetra::EpetraVectorT< long long, EpetraNode >::Scalar
private

Definition at line 362 of file Xpetra_EpetraVector.hpp.

◆ LocalOrdinal [1/2]

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

Definition at line 363 of file Xpetra_EpetraVector.hpp.

◆ GlobalOrdinal [1/2]

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

Definition at line 364 of file Xpetra_EpetraVector.hpp.

◆ Node

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

Definition at line 365 of file Xpetra_EpetraVector.hpp.

◆ Scalar [2/2]

typedef double Xpetra::EpetraVectorT< long long, EpetraNode >::Scalar
private

Definition at line 78 of file Xpetra_EpetraVector.hpp.

◆ LocalOrdinal [2/2]

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

Definition at line 79 of file Xpetra_EpetraVector.hpp.

◆ GlobalOrdinal [2/2]

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

Definition at line 80 of file Xpetra_EpetraVector.hpp.

Constructor & Destructor Documentation

◆ EpetraVectorT() [1/6]

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

Sets all vector entries to zero.

Definition at line 383 of file Xpetra_EpetraVector.hpp.

◆ ~EpetraVectorT() [1/2]

virtual Xpetra::EpetraVectorT< long long, EpetraNode >::~EpetraVectorT ( )
inlinevirtual

Vector copy constructor.

Destructor.

Definition at line 390 of file Xpetra_EpetraVector.hpp.

◆ EpetraVectorT() [2/6]

Xpetra::EpetraVectorT< long long, EpetraNode >::EpetraVectorT ( const Teuchos::RCP< Epetra_Vector > & vec)
inline

EpetraMultiVectorT constructor to wrap a Epetra_Vector object.

Definition at line 477 of file Xpetra_EpetraVector.hpp.

◆ EpetraVectorT() [3/6]

Xpetra::EpetraVectorT< long long, EpetraNode >::EpetraVectorT ( const RCP< Epetra_MultiVector > & mv,
size_t j )
inline

This constructor creates a Vector which is a view of column j of the MultiVector 'mv'. It implements the logic of MultiVector::getVector/getVectorNonConst() for Epetra MultiVector. The newly created Xpetra::EpetraVectorT will remain valid after the disappearance of the references to 'mv' in user code.

Definition at line 486 of file Xpetra_EpetraVector.hpp.

◆ EpetraVectorT() [4/6]

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

Sets all vector entries to zero.

Definition at line 115 of file Xpetra_EpetraVector.hpp.

◆ EpetraVectorT() [5/6]

Xpetra::EpetraVectorT< long long, EpetraNode >::EpetraVectorT ( const Teuchos::RCP< Epetra_Vector > & vec)
inline

EpetraMultiVectorT constructor to wrap a Epetra_Vector object.

Definition at line 181 of file Xpetra_EpetraVector.hpp.

◆ EpetraVectorT() [6/6]

Xpetra::EpetraVectorT< long long, EpetraNode >::EpetraVectorT ( const RCP< Epetra_MultiVector > & mv,
size_t j )
inline

This constructor creates a Vector which is a view of column j of the MultiVector 'mv'. It implements the logic of MultiVector::getVector/getVectorNonConst() for Epetra MultiVector. The newly created Xpetra::EpetraVectorT will remain valid after the disappearance of the references to 'mv' in user code.

Definition at line 193 of file Xpetra_EpetraVector.hpp.

◆ ~EpetraVectorT() [2/2]

virtual Xpetra::EpetraVectorT< long long, EpetraNode >::~EpetraVectorT ( )
inlinevirtual

Vector copy constructor.

Destructor.

Definition at line 122 of file Xpetra_EpetraVector.hpp.

Member Function Documentation

◆ replaceGlobalValue() [1/3]

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

Replace current value at the specified location with specified value.

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

Definition at line 398 of file Xpetra_EpetraVector.hpp.

◆ sumIntoGlobalValue() [1/3]

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

Adds specified value to existing value at the specified location.

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

Definition at line 401 of file Xpetra_EpetraVector.hpp.

◆ replaceLocalValue() [1/3]

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

Replace current value at the specified location with specified values.

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

Definition at line 404 of file Xpetra_EpetraVector.hpp.

◆ sumIntoLocalValue() [1/3]

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

Adds specified value to existing value at the specified location.

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

Definition at line 407 of file Xpetra_EpetraVector.hpp.

◆ dot() [1/3]

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

Computes dot product of this Vector against input Vector x.

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

Definition at line 415 of file Xpetra_EpetraVector.hpp.

◆ norm1() [1/3]

Teuchos::ScalarTraits< Scalar >::magnitudeType Xpetra::EpetraVectorT< long long, EpetraNode >::norm1 ( ) const
inlinevirtual

Return 1-norm of this Vector.

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

Definition at line 428 of file Xpetra_EpetraVector.hpp.

◆ norm2() [1/3]

Teuchos::ScalarTraits< Scalar >::magnitudeType Xpetra::EpetraVectorT< long long, EpetraNode >::norm2 ( ) const
inlinevirtual

Compute 2-norm of this Vector.

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

Definition at line 431 of file Xpetra_EpetraVector.hpp.

◆ normInf() [1/3]

Teuchos::ScalarTraits< Scalar >::magnitudeType Xpetra::EpetraVectorT< long long, EpetraNode >::normInf ( ) const
inlinevirtual

Compute Inf-norm of this Vector.

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

Definition at line 434 of file Xpetra_EpetraVector.hpp.

◆ meanValue() [1/3]

Scalar Xpetra::EpetraVectorT< long long, EpetraNode >::meanValue ( ) const
inlinevirtual

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

Compute mean (average) value of this Vector.

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

Definition at line 440 of file Xpetra_EpetraVector.hpp.

◆ description() [1/2]

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

Return a simple one-line description of this object.

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

Definition at line 453 of file Xpetra_EpetraVector.hpp.

◆ describe() [1/2]

void Xpetra::EpetraVectorT< 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< double, int, long long, EpetraNode >.

Definition at line 464 of file Xpetra_EpetraVector.hpp.

◆ getEpetra_Vector() [1/2]

Epetra_Vector * Xpetra::EpetraVectorT< long long, EpetraNode >::getEpetra_Vector ( ) const
inline

Get the underlying Epetra vector.

Definition at line 480 of file Xpetra_EpetraVector.hpp.

◆ norm1() [2/3]

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

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

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

Definition at line 85 of file Xpetra_EpetraVector.hpp.

◆ norm1() [3/3]

Teuchos::ScalarTraits< Scalar >::magnitudeType Xpetra::EpetraVectorT< long long, EpetraNode >::norm1 ( ) const
inlinevirtual

Return 1-norm of this Vector.

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

Definition at line 150 of file Xpetra_EpetraVector.hpp.

◆ norm2() [2/3]

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

◆ norm2() [3/3]

Teuchos::ScalarTraits< Scalar >::magnitudeType Xpetra::EpetraVectorT< long long, EpetraNode >::norm2 ( ) const
inlinevirtual

Compute 2-norm of this Vector.

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

Definition at line 153 of file Xpetra_EpetraVector.hpp.

◆ normInf() [2/3]

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

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

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

Definition at line 91 of file Xpetra_EpetraVector.hpp.

◆ normInf() [3/3]

Teuchos::ScalarTraits< Scalar >::magnitudeType Xpetra::EpetraVectorT< long long, EpetraNode >::normInf ( ) const
inlinevirtual

Compute Inf-norm of this Vector.

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

Definition at line 156 of file Xpetra_EpetraVector.hpp.

◆ meanValue() [2/3]

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

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

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

Definition at line 94 of file Xpetra_EpetraVector.hpp.

◆ meanValue() [3/3]

Scalar Xpetra::EpetraVectorT< long long, EpetraNode >::meanValue ( ) const
inlinevirtual

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

Compute mean (average) value of this Vector.

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

Definition at line 162 of file Xpetra_EpetraVector.hpp.

◆ replaceGlobalValue() [2/3]

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

Replace value, using global (row) index.

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

Definition at line 97 of file Xpetra_EpetraVector.hpp.

◆ replaceGlobalValue() [3/3]

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

Replace current value at the specified location with specified value.

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

Definition at line 130 of file Xpetra_EpetraVector.hpp.

◆ sumIntoGlobalValue() [2/3]

void Xpetra::EpetraVectorT< 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< double, int, long long, EpetraNode >.

Definition at line 100 of file Xpetra_EpetraVector.hpp.

◆ sumIntoGlobalValue() [3/3]

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

Adds specified value to existing value at the specified location.

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

Definition at line 133 of file Xpetra_EpetraVector.hpp.

◆ replaceLocalValue() [2/3]

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

Replace value, using local (row) index.

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

Definition at line 103 of file Xpetra_EpetraVector.hpp.

◆ replaceLocalValue() [3/3]

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

Replace current value at the specified location with specified values.

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

Definition at line 136 of file Xpetra_EpetraVector.hpp.

◆ sumIntoLocalValue() [2/3]

void Xpetra::EpetraVectorT< 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< double, int, long long, EpetraNode >.

Definition at line 106 of file Xpetra_EpetraVector.hpp.

◆ sumIntoLocalValue() [3/3]

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

Adds specified value to existing value at the specified location.

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

Definition at line 139 of file Xpetra_EpetraVector.hpp.

◆ dot() [2/3]

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

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

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

Definition at line 109 of file Xpetra_EpetraVector.hpp.

◆ dot() [3/3]

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

Computes dot product of this Vector against input Vector x.

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

Definition at line 147 of file Xpetra_EpetraVector.hpp.

◆ description() [2/2]

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

Return a simple one-line description of this object.

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

Definition at line 170 of file Xpetra_EpetraVector.hpp.

◆ describe() [2/2]

void Xpetra::EpetraVectorT< 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< double, int, long long, EpetraNode >.

Definition at line 173 of file Xpetra_EpetraVector.hpp.

◆ getEpetra_Vector() [2/2]

Epetra_Vector * Xpetra::EpetraVectorT< long long, EpetraNode >::getEpetra_Vector ( ) const
inline

Get the underlying Epetra vector.

Definition at line 187 of file Xpetra_EpetraVector.hpp.

Member Data Documentation

◆ internalRefToBaseMV_ [1/2]

const RCP<const Epetra_MultiVector> Xpetra::EpetraVectorT< long long, EpetraNode >::internalRefToBaseMV_
private

Definition at line 500 of file Xpetra_EpetraVector.hpp.

◆ internalRefToBaseMV_ [2/2]

const RCP<const Epetra_MultiVector> Xpetra::EpetraVectorT< long long, EpetraNode >::internalRefToBaseMV_
private

Definition at line 202 of file Xpetra_EpetraVector.hpp.


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