46 #ifndef XPETRA_EPETRAINTVECTOR_HPP
47 #define XPETRA_EPETRAINTVECTOR_HPP
58 #include "Epetra_IntVector.h"
63 :
public Vector<int,int,int>
80 vec_ =
rcp(
new Epetra_IntVector(eMap->getEpetra_BlockMap(), zeroOut));
133 void randomize(
bool bUseXpetraImplementation =
true);
137 void setSeed(
unsigned int seed);
172 void scale(
const int &alpha);
178 void update(
const int &alpha,
const MultiVector<int,int,int,Kokkos::DefaultNode::DefaultNodeType> &A,
const int &beta,
const MultiVector<int,int,int,Kokkos::DefaultNode::DefaultNodeType> &B,
const int &gamma);
199 void multiply(
Teuchos::ETransp transA,
Teuchos::ETransp transB,
const int &alpha,
const MultiVector<int,int,int,Kokkos::DefaultNode::DefaultNodeType> &A,
const MultiVector<int,int,int,Kokkos::DefaultNode::DefaultNodeType> &B,
const int &beta);
278 #endif // XPETRA_EPETRAINTVECTOR_HPP
Teuchos::RCP< Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > getVectorNonConst(size_t j)
Return a Vector which is a nonconst view of column j.
void reciprocal(const MultiVector< int, int, int, Kokkos::DefaultNode::DefaultNodeType > &A)
Puts element-wise reciprocal values of input Multi-vector in target, this(i,j) = 1/A(i,j).
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.
void elementWiseMultiply(int scalarAB, const Vector< int, int, int, Kokkos::DefaultNode::DefaultNodeType > &A, const MultiVector< int, int, int, Kokkos::DefaultNode::DefaultNodeType > &B, int scalarThis)
Element-wise multiply of a Vector A with a EpetraMultiVector B.
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::ScalarTraits< int >::magnitudeType normInf() const
Compute Inf-norm of this Vector.
void update(const int &alpha, const MultiVector< int, int, int, Kokkos::DefaultNode::DefaultNodeType > &A, const int &beta)
Update multi-vector values with scaled values of A, this = beta*this + alpha*A.
std::string description() const
Return a simple one-line description of this object.
Kokkos::DefaultNode::DefaultNodeType Node
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Teuchos::ArrayRCP< const int > getData(size_t j) const
void replaceLocalValue(LocalOrdinal myRow, const Scalar &value)
Replace current value at the specified location with specified values.
global_size_t getGlobalLength() const
Returns the global vector length of vectors in the multi-vector.
void doExport(const DistObject< int, int, int > &dest, const Import< int, int > &importer, CombineMode CM)
size_t getLocalLength() const
Returns the local vector length on the calling processor of vectors in the multi-vector.
void multiply(Teuchos::ETransp transA, Teuchos::ETransp transB, const int &alpha, const MultiVector< int, int, int, Kokkos::DefaultNode::DefaultNodeType > &A, const MultiVector< int, int, int, Kokkos::DefaultNode::DefaultNodeType > &B, const int &beta)
Matrix-Matrix multiplication, this = beta*this + alpha*op(A)*op(B).
void randomize(bool bUseXpetraImplementation=true)
Set multi-vector values to random numbers.
Teuchos::ScalarTraits< int >::magnitudeType norm2() const
Compute 2-norm of this Vector.
int dot(const Vector< int, int, int > &a) const
TODO missing comment.
void replaceMap(const RCP< const Map< int, int > > &map)
const RCP< const Comm< int > > getComm() const
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
void setSeed(unsigned int seed)
Set seed for Random function.
Teuchos::ScalarTraits< int >::magnitudeType norm1() const
Return 1-norm of this Vector.
~EpetraIntVector()
Destructor.
void sumIntoGlobalValue(GlobalOrdinal globalRow, 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.
Exception throws when you call an unimplemented method of Xpetra.
size_t global_size_t
Global size_t object.
static const EVerbosityLevel verbLevel_default
void replaceGlobalValue(GlobalOrdinal globalRow, const Scalar &value)
Replace current value at the specified location with specified value.
#define XPETRA_RCP_DYNAMIC_CAST(type, obj, newObj, exceptionMsg)
void doImport(const DistObject< int, int, int > &source, const Import< int, int > &importer, CombineMode CM)
void sumIntoLocalValue(LocalOrdinal myRow, const Scalar &value)
Adds specified value to existing value at the specified location.
int maxValue() const
Compute max value of this Vector.
void abs(const MultiVector< int, int, int, Kokkos::DefaultNode::DefaultNodeType > &A)
Puts element-wise absolute values of input Multi-vector in target: A = abs(this)
int meanValue() const
Compute mean (average) value of this Vector.
Teuchos::ArrayRCP< int > getDataNonConst(size_t j)
CombineMode
Xpetra::Combine Mode enumerable type.
Teuchos::ScalarTraits< int >::magnitudeType normWeighted(const Vector< int, int, int > &weights) const
Compute Weighted 2-norm (RMS Norm) of this Vector.
size_t getNumVectors() const
Returns the number of vectors in the multi-vector.
EpetraIntVector(const Teuchos::RCP< const Map< int, int > > &map, bool zeroOut=true)
Sets all vector entries to zero.
void scale(const int &alpha)
Scale the current values of a multi-vector, this = alpha*this.
RCP< Epetra_IntVector > vec_
const Teuchos::RCP< const Map< int, int > > getMap() const
The Map describing the parallel distribution of this object.
RCP< Epetra_IntVector > getEpetra_IntVector() const