ergo
mat::Vector< Treal > Class Template Reference

#include <Vector.h>

Inheritance diagram for mat::Vector< Treal >:
mat::VectorHierarchicBase< Treal >

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. More...
 
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)
 
- Public Member Functions inherited from mat::VectorHierarchicBase< Treal >
const int & nScalars () const
 
const int & n () const
 
Treal & operator ()(int ind)
 
const Treal & operator ()(int ind) const
 
bool is_zero () const
 
void resetRows (SizesAndBlocks const &newRows)
 

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 More...
 
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 More...
 
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 More...
 

Friends

class Matrix< Treal >
 

Additional Inherited Members

- Protected Member Functions inherited from mat::VectorHierarchicBase< Treal >
bool is_empty () const
 Check if vector is empty Empty is different from zero, a zero matrix contains information about blocksizes etc. More...
 
 VectorHierarchicBase ()
 
 VectorHierarchicBase (SizesAndBlocks const &rowsInp)
 
 VectorHierarchicBase (const VectorHierarchicBase< Treal, Treal > &vec)
 
VectorHierarchicBase< Treal, Treal > & operator= (const VectorHierarchicBase< Treal, Treal > &vec)
 
virtual ~VectorHierarchicBase ()
 
- Protected Attributes inherited from mat::VectorHierarchicBase< Treal >
SizesAndBlocks rows
 
Treal * elements
 

Constructor & Destructor Documentation

◆ Vector()

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

Member Function Documentation

◆ addFromFull()

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

◆ allocate()

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

Referenced by axpy(), gemv(), and symv().

◆ assignFromFull()

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

◆ axpy()

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

◆ clear()

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

Set vector to zero and delete all arrays.

References mat::freeElements().

◆ dot()

◆ eucl()

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

◆ fullVector()

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

◆ gemv()

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

◆ operator*=()

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

References mat::scal().

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ random()

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

◆ randomNormalized()

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

◆ readFromFile()

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

◆ symv()

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

◆ trmv()

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

◆ writeToFile()

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

Friends And Related Function Documentation

◆ Matrix< Treal >

template<class Treal >
friend class Matrix< Treal >
friend

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