Public Member Functions | List of all members
Anasazi::MyMultiVec< ScalarType > Class Template Reference

Simple example of a user's defined Anasazi::MultiVec class. More...

#include <MyMultiVec.hpp>

Inheritance diagram for Anasazi::MyMultiVec< ScalarType >:

Public Member Functions

 MyMultiVec (const int Length, const int NumberVecs)
 Constructor for a NumberVecs vectors of length Length.
 
 MyMultiVec (const int Length, const std::vector< ScalarType * > &rhs)
 Constructor with already allocated memory.
 
 MyMultiVec (const MyMultiVec &rhs)
 Copy constructor, performs a deep copy.
 
 ~MyMultiVec ()
 Destructor.
 
MyMultiVec< ScalarType > * Clone (const int NumberVecs) const
 Returns a clone of the current vector.
 
MyMultiVec< ScalarType > * CloneCopy () const
 
MyMultiVec< ScalarType > * CloneCopy (const std::vector< int > &index) const
 Returns a clone copy of specified vectors.
 
MyMultiVec< ScalarType > * CloneViewNonConst (const std::vector< int > &index)
 Returns a view of current vector (shallow copy)
 
const MyMultiVec< ScalarType > * CloneView (const std::vector< int > &index) const
 Returns a view of current vector (shallow copy), const version.
 
int GetVecLength () const
 
int GetNumberVecs () const
 
ptrdiff_t GetGlobalLength () const
 
void MvTimesMatAddMv (ScalarType alpha, const Anasazi::MultiVec< ScalarType > &A, const Teuchos::SerialDenseMatrix< int, ScalarType > &B, ScalarType beta)
 
void MvAddMv (ScalarType alpha, const Anasazi::MultiVec< ScalarType > &A, ScalarType beta, const Anasazi::MultiVec< ScalarType > &B)
 
void MvTransMv (ScalarType alpha, const Anasazi::MultiVec< ScalarType > &A, Teuchos::SerialDenseMatrix< int, ScalarType > &B) const
 
void MvDot (const Anasazi::MultiVec< ScalarType > &A, std::vector< ScalarType > &b) const
 
void MvNorm (std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &normvec) const
 
void SetBlock (const Anasazi::MultiVec< ScalarType > &A, const std::vector< int > &index)
 
void MvScale (ScalarType alpha)
 
void MvScale (const std::vector< ScalarType > &alpha)
 
void MvRandom ()
 
void MvInit (ScalarType alpha)
 
void MvPrint (std::ostream &os) const
 
ScalarType & operator() (const int i, const int j)
 
const ScalarType & operator() (const int i, const int j) const
 
ScalarType * operator[] (int v)
 
ScalarType * operator[] (int v) const
 

Detailed Description

template<class ScalarType>
class Anasazi::MyMultiVec< ScalarType >

Simple example of a user's defined Anasazi::MultiVec class.

This is a simple, single processor example of user's defined MultiVec-derived class. The class is templated with ScalarType; possible choices are, for example, "float", "double", or "complex<double>".

Author
Oscar Chinallato (ETHZ/ICOS) and Marzio Sala (ETHZ/COLAB)
Date
Last modified on 01-Nov-05

Definition at line 19 of file MyMultiVec.hpp.


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