Anasazi::MultiVecTraits< double, SimpleMV > Class Template Reference

List of all members.

Static Public Member Functions

static bool detectRepeatedIndex (const std::vector< int > &index)
Creation methods


static RCP< _MV > Clone (const _MV &mv, const int numvecs)
static RCP< _MV > CloneCopy (const _MV &mv)
static RCP< _MV > CloneCopy (const _MV &mv, const std::vector< int > &index)
static RCP< _MV > CloneViewNonConst (_MV &mv, const std::vector< int > &index)
static RCP< const _MV > CloneView (const _MV &mv, const std::vector< int > &index)
Attribute methods


static int GetVecLength (const _MV &mv)
static int GetNumberVecs (const _MV &mv)
Update methods


static void MvTimesMatAddMv (const double alpha, const _MV &A, const Teuchos::SerialDenseMatrix< int, double > &B, const double beta, _MV &mv)
 Update mv with $ \alpha A B + \beta mv $.
static void MvAddMv (const double alpha, const _MV &A, const double beta, const _MV &B, _MV &mv)
 Replace mv with $\alpha A + \beta B$.
static void MvTransMv (const double alpha, const _MV &A, const _MV &mv, Teuchos::SerialDenseMatrix< int, double > &B)
 Compute a dense matrix B through the matrix-matrix multiply $ \alpha A^Tmv $.
static void MvDot (const _MV &mv, const _MV &A, std::vector< double > &b)
static void MvScale (_MV &mv, const double alpha)
static void MvScale (_MV &mv, const std::vector< double > &alpha)
Norm method


static void MvNorm (const _MV &mv, std::vector< Teuchos::ScalarTraits< double >::magnitudeType > &normvec)
Initialization methods


static void SetBlock (const _MV &A, const std::vector< int > &index, _MV &mv)
 Copy the vectors in A to a set of vectors in mv indicated by the indices given in index.
static void MvRandom (_MV &mv)
 Replace the vectors in mv with random vectors.
static void MvInit (_MV &mv, double alpha=Teuchos::ScalarTraits< double >::zero())
 Replace each element of the vectors in mv with alpha.
Print method


static void MvPrint (const _MV &mv, std::ostream &os)


Detailed Description

template<>
class Anasazi::MultiVecTraits< double, SimpleMV >

Definition at line 86 of file PlayaAnasaziAdapter.hpp.


Member Function Documentation

static int Anasazi::MultiVecTraits< double, SimpleMV >::GetVecLength ( const _MV &  mv  )  [inline, static]

Obtain the vector length of mv.

Definition at line 209 of file PlayaAnasaziAdapter.hpp.

static int Anasazi::MultiVecTraits< double, SimpleMV >::GetNumberVecs ( const _MV &  mv  )  [inline, static]

Obtain the number of vectors in mv

Definition at line 216 of file PlayaAnasaziAdapter.hpp.

static void Anasazi::MultiVecTraits< double, SimpleMV >::MvTimesMatAddMv ( const double  alpha,
const _MV &  A,
const Teuchos::SerialDenseMatrix< int, double > &  B,
const double  beta,
_MV &  mv 
) [inline, static]

Update mv with $ \alpha A B + \beta mv $.

Definition at line 229 of file PlayaAnasaziAdapter.hpp.

static void Anasazi::MultiVecTraits< double, SimpleMV >::MvAddMv ( const double  alpha,
const _MV &  A,
const double  beta,
const _MV &  B,
_MV &  mv 
) [inline, static]

Replace mv with $\alpha A + \beta B$.

Definition at line 268 of file PlayaAnasaziAdapter.hpp.

static void Anasazi::MultiVecTraits< double, SimpleMV >::MvTransMv ( const double  alpha,
const _MV &  A,
const _MV &  mv,
Teuchos::SerialDenseMatrix< int, double > &  B 
) [inline, static]

Compute a dense matrix B through the matrix-matrix multiply $ \alpha A^Tmv $.

Definition at line 289 of file PlayaAnasaziAdapter.hpp.

static void Anasazi::MultiVecTraits< double, SimpleMV >::MvDot ( const _MV &  mv,
const _MV &  A,
std::vector< double > &  b 
) [inline, static]

Dot product

Definition at line 310 of file PlayaAnasaziAdapter.hpp.

static void Anasazi::MultiVecTraits< double, SimpleMV >::MvScale ( _MV &  mv,
const double  alpha 
) [inline, static]

Scale each element of the vectors in *this with alpha.

Definition at line 321 of file PlayaAnasaziAdapter.hpp.

static void Anasazi::MultiVecTraits< double, SimpleMV >::MvScale ( _MV &  mv,
const std::vector< double > &  alpha 
) [inline, static]

Scale each element of the i-th vector in *this with alpha[i].

Definition at line 329 of file PlayaAnasaziAdapter.hpp.

static void Anasazi::MultiVecTraits< double, SimpleMV >::MvNorm ( const _MV &  mv,
std::vector< Teuchos::ScalarTraits< double >::magnitudeType > &  normvec 
) [inline, static]

Compute the 2-norm of each individual vector of mv.

Definition at line 341 of file PlayaAnasaziAdapter.hpp.

static void Anasazi::MultiVecTraits< double, SimpleMV >::SetBlock ( const _MV &  A,
const std::vector< int > &  index,
_MV &  mv 
) [inline, static]

Copy the vectors in A to a set of vectors in mv indicated by the indices given in index.

Definition at line 361 of file PlayaAnasaziAdapter.hpp.

static void Anasazi::MultiVecTraits< double, SimpleMV >::MvRandom ( _MV &  mv  )  [inline, static]

Replace the vectors in mv with random vectors.

Definition at line 375 of file PlayaAnasaziAdapter.hpp.

static void Anasazi::MultiVecTraits< double, SimpleMV >::MvInit ( _MV &  mv,
double  alpha = Teuchos::ScalarTraits<double>::zero() 
) [inline, static]

Replace each element of the vectors in mv with alpha.

Definition at line 382 of file PlayaAnasaziAdapter.hpp.

static void Anasazi::MultiVecTraits< double, SimpleMV >::MvPrint ( const _MV &  mv,
std::ostream &  os 
) [inline, static]

Print the mv multi-vector to the os output stream.

Definition at line 394 of file PlayaAnasaziAdapter.hpp.

static bool Anasazi::MultiVecTraits< double, SimpleMV >::detectRepeatedIndex ( const std::vector< int > &  index  )  [inline, static]

Definition at line 402 of file PlayaAnasaziAdapter.hpp.


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

doxygen