46 #ifndef XPETRA_MULTIVECTOR_DEF_HPP
47 #define XPETRA_MULTIVECTOR_DEF_HPP
55 template<
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
62 template<
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
72 template<
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
77 typedef Teuchos::ScalarTraits<Scalar> SCT;
79 const size_t numVectors = getNumVectors();
80 for(
size_t i = 0; i < numVectors; i++)
82 Teuchos::ArrayRCP<Scalar> datai = getDataNonConst(i);
84 const size_t myLength = getLocalLength();
85 for(
size_t j = 0; j < myLength; j++)
87 datai[ j ] = SCT::random();
95 #endif // XPETRA_MULTIVECTOR_DEF_HPP
virtual void Xpetra_randomize()
Set multi-vector values to random numbers. XPetra implementation.
MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > & operator=(const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &rhs)
Assignment operator: Does a deep copy.
virtual ~MultiVector()
Destructor.