#include <Vector.h>
Inheritance diagram for mat::Vector< Treal, Telement >:

Public Types | |
| typedef Telement | ElementType |
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, Telement > & | operator= (const Vector< Treal, Telement > &vec) |
| void | clear () |
| void | writeToFile (std::ofstream &file) const |
| void | readFromFile (std::ifstream &file) |
| Vector< Treal, Telement > & | operator= (int const k) |
| void | randomNormalized () |
| void | random () |
| Treal | eucl () const |
| Vector< Treal, Telement > & | operator *= (const Treal alpha) |
Static Public Member Functions | |
| static Treal | dot (Vector< Treal, Telement > const &x, Vector< Treal, Telement > const &y) |
| static void | axpy (Treal const &alpha, Vector< Treal, Telement > const &x, Vector< Treal, Telement > &y) |
| template<typename TmatrixElement> | |
| static void | gemv (bool const tA, Treal const alpha, Matrix< Treal, TmatrixElement > const &A, Vector< Treal, Telement > const &x, Treal const beta, Vector< Treal, Telement > &y) |
| gemv: y = alpha * A * x + beta * y, or y = alpha * transpose(A) * x + beta * y | |
| template<typename TmatrixElement> | |
| static void | symv (char const uplo, Treal const alpha, Matrix< Treal, TmatrixElement > const &A, Vector< Treal, Telement > const &x, Treal const beta, Vector< Treal, Telement > &y) |
| symv: y = alpha * A * x + beta * y, where A is symmetric | |
| template<typename TmatrixElement> | |
| static void | trmv (char const uplo, const bool tA, Matrix< Treal, TmatrixElement > const &A, Vector< Treal, Telement > &x) |
| trmv: x = A * x, or x = transpose(A) * x, where A is triangular | |
This class is used to obtain the hierarchic vector data structure.
Permutation
| typedef Telement mat::Vector< Treal, Telement >::ElementType |
| mat::Vector< Treal, Telement >::Vector | ( | ) | [inline] |
| void mat::Vector< Treal, Telement >::addFromFull | ( | std::vector< Treal > const & | fullVector | ) |
| void mat::Vector< Treal, Telement >::allocate | ( | ) | [inline] |
| void mat::Vector< Treal, Telement >::assignFromFull | ( | std::vector< Treal > const & | fullVector | ) |
| void mat::Vector< Treal, Telement >::axpy | ( | Treal const & | alpha, | |
| Vector< Treal, Telement > const & | x, | |||
| Vector< Treal, Telement > & | y | |||
| ) | [static] |
| void mat::Vector< Treal, Telement >::clear | ( | ) |
| Treal mat::Vector< Treal, Telement >::dot | ( | Vector< Treal, Telement > const & | x, | |
| Vector< Treal, Telement > const & | y | |||
| ) | [static] |
| Treal mat::Vector< Treal, Telement >::eucl | ( | ) | const [inline] |
| void mat::Vector< Treal, Telement >::fullVector | ( | std::vector< Treal > & | fullVector | ) | const |
| void mat::Vector< Treal, Telement >::gemv | ( | bool const | tA, | |
| Treal const | alpha, | |||
| Matrix< Treal, TmatrixElement > const & | A, | |||
| Vector< Treal, Telement > const & | x, | |||
| Treal const | beta, | |||
| Vector< Treal, Telement > & | y | |||
| ) | [static] |
gemv: y = alpha * A * x + beta * y, or y = alpha * transpose(A) * x + beta * y
| Vector< Treal, Telement > & mat::Vector< Treal, Telement >::operator *= | ( | const Treal | alpha | ) |
| Vector< Treal, Telement > & mat::Vector< Treal, Telement >::operator= | ( | int const | k | ) |
| Vector<Treal, Telement>& mat::Vector< Treal, Telement >::operator= | ( | const Vector< Treal, Telement > & | vec | ) | [inline] |
| void mat::Vector< Treal, Telement >::random | ( | ) |
| void mat::Vector< Treal, Telement >::randomNormalized | ( | ) | [inline] |
| void mat::Vector< Treal, Telement >::readFromFile | ( | std::ifstream & | file | ) |
| void mat::Vector< Treal, Telement >::symv | ( | char const | uplo, | |
| Treal const | alpha, | |||
| Matrix< Treal, TmatrixElement > const & | A, | |||
| Vector< Treal, Telement > const & | x, | |||
| Treal const | beta, | |||
| Vector< Treal, Telement > & | y | |||
| ) | [static] |
symv: y = alpha * A * x + beta * y, where A is symmetric
| void mat::Vector< Treal, Telement >::trmv | ( | char const | uplo, | |
| const bool | tA, | |||
| Matrix< Treal, TmatrixElement > const & | A, | |||
| Vector< Treal, Telement > & | x | |||
| ) | [static] |
trmv: x = A * x, or x = transpose(A) * x, where A is triangular
| void mat::Vector< Treal, Telement >::writeToFile | ( | std::ofstream & | file | ) | const |
1.4.7