mat::Vector< Treal > Class Template Reference

#include <Vector.h>

Inheritance diagram for mat::Vector< Treal >:

mat::VectorHierarchicBase< Treal > List of all members.

Public Member Functions

 Vector ()
void allocate ()
void assignFromFull (std::vector< Treal > const &fullVector)
void addFromFull (std::vector< Treal > const &fullVector)
void fullVector (std::vector< Treal > &fullVector) const
Vector< Treal > & operator= (const Vector< Treal > &vec)
void clear ()
 Set vector to zero and delete all arrays.
void writeToFile (std::ofstream &file) const
void readFromFile (std::ifstream &file)
Vector< Treal > & operator= (int const k)
void randomNormalized ()
void random ()
Treal eucl () const
Vector< Treal > & operator *= (const Treal alpha)

Static Public Member Functions

static Treal dot (Vector< Treal > const &x, Vector< Treal > const &y)
static void axpy (Treal const &alpha, Vector< Treal > const &x, Vector< Treal > &y)
static void gemv (bool const tA, Treal const alpha, Matrix< Treal > const &A, Vector< Treal > const &x, Treal const beta, Vector< Treal > &y)
 gemv: y = alpha * A * x + beta * y, or y = alpha * transpose(A) * x + beta * y
static void symv (char const uplo, Treal const alpha, Matrix< Treal > const &A, Vector< Treal > const &x, Treal const beta, Vector< Treal > &y)
 symv: y = alpha * A * x + beta * y, where A is symmetric
static void trmv (char const uplo, const bool tA, Matrix< Treal > const &A, Vector< Treal > &x)
 trmv: x = A * x, or x = transpose(A) * x, where A is triangular

Friends

class Matrix< Treal >

template<class Treal>
class mat::Vector< Treal >


Constructor & Destructor Documentation

template<class Treal>
mat::Vector< Treal >::Vector (  )  [inline]


Member Function Documentation

template<class Treal>
void mat::Vector< Treal >::addFromFull ( std::vector< Treal > const &  fullVector  ) 

template<class Treal>
void mat::Vector< Treal >::allocate (  )  [inline]

template<class Treal>
void mat::Vector< Treal >::assignFromFull ( std::vector< Treal > const &  fullVector  ) 

template<class Treal>
void mat::Vector< Treal >::axpy ( Treal const &  alpha,
Vector< Treal > const &  x,
Vector< Treal > &  y 
) [static]

template<class Treal>
void mat::Vector< Treal >::clear (  ) 

Set vector to zero and delete all arrays.

template<class Treal>
Treal mat::Vector< Treal >::dot ( Vector< Treal > const &  x,
Vector< Treal > const &  y 
) [static]

template<class Treal>
Treal mat::Vector< Treal >::eucl (  )  const [inline]

template<class Treal>
void mat::Vector< Treal >::fullVector ( std::vector< Treal > &  fullVector  )  const

template<class Treal>
void mat::Vector< Treal >::gemv ( bool const   tA,
Treal const   alpha,
Matrix< Treal > const &  A,
Vector< Treal > const &  x,
Treal const   beta,
Vector< Treal > &  y 
) [static]

gemv: y = alpha * A * x + beta * y, or y = alpha * transpose(A) * x + beta * y

template<class Treal>
Vector< Treal > & mat::Vector< Treal >::operator *= ( const Treal  alpha  ) 

template<class Treal>
Vector< Treal > & mat::Vector< Treal >::operator= ( int const   k  ) 

template<class Treal>
Vector<Treal>& mat::Vector< Treal >::operator= ( const Vector< Treal > &  vec  )  [inline]

template<class Treal>
void mat::Vector< Treal >::random (  ) 

template<class Treal>
void mat::Vector< Treal >::randomNormalized (  )  [inline]

template<class Treal>
void mat::Vector< Treal >::readFromFile ( std::ifstream &  file  ) 

template<class Treal>
void mat::Vector< Treal >::symv ( char const   uplo,
Treal const   alpha,
Matrix< Treal > const &  A,
Vector< Treal > const &  x,
Treal const   beta,
Vector< Treal > &  y 
) [static]

symv: y = alpha * A * x + beta * y, where A is symmetric

template<class Treal>
void mat::Vector< Treal >::trmv ( char const   uplo,
const bool  tA,
Matrix< Treal > const &  A,
Vector< Treal > &  x 
) [static]

trmv: x = A * x, or x = transpose(A) * x, where A is triangular

template<class Treal>
void mat::Vector< Treal >::writeToFile ( std::ofstream &  file  )  const


Friends And Related Function Documentation

template<class Treal>
friend class Matrix< Treal > [friend]


The documentation for this class was generated from the following file:
Generated on Mon Sep 17 14:32:58 2012 for ergo by  doxygen 1.4.7