#include <VectorGeneral.h>
Inheritance diagram for mat::VectorGeneral< Treal, Tvector >:
Public Member Functions | |
void | resetSizesAndBlocks (SizesAndBlocks const &newRows) |
bool | is_empty () const |
VectorGeneral () | |
VectorGeneral (const VectorGeneral< Treal, Tvector > &other) | |
void | assign_from_full (std::vector< Treal > const &fullVector, SizesAndBlocks const &newRows) |
void | fullvector (std::vector< Treal > &fullVector) const |
VectorGeneral< Treal, Tvector > & | operator= (const VectorGeneral< Treal, Tvector > &other) |
void | clear () |
Release memory for the information written to file. | |
void | rand () |
template<typename Tmatrix> | |
VectorGeneral< Treal, Tvector > & | operator= (const XYZ< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &smv) |
y = alpha * op(A) * x | |
template<typename Tmatrix> | |
VectorGeneral< Treal, Tvector > & | operator+= (const XYZ< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &smv) |
y += alpha * op(A) * x | |
template<typename Tmatrix> | |
VectorGeneral< Treal, Tvector > & | operator= (const XYZpUV< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector >, Treal, VectorGeneral< Treal, Tvector > > &smvpsv) |
y = alpha * op(A) * x + beta * y | |
template<typename Tmatrix> | |
VectorGeneral< Treal, Tvector > & | operator= (const XY< MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &mv) |
y = op(A) * x : A is general | |
template<typename Tmatrix> | |
VectorGeneral< Treal, Tvector > & | operator= (const XYZ< Treal, MatrixSymmetric< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &smv) |
y = alpha * A * x : A is symmetric | |
template<typename Tmatrix> | |
VectorGeneral< Treal, Tvector > & | operator+= (const XYZ< Treal, MatrixSymmetric< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &smv) |
y += alpha * A * x : A is symmetric | |
template<typename Tmatrix> | |
VectorGeneral< Treal, Tvector > & | operator= (const XYZpUV< Treal, MatrixSymmetric< Treal, Tmatrix >, VectorGeneral< Treal, Tvector >, Treal, VectorGeneral< Treal, Tvector > > &smvpsv) |
y = alpha * A * x + beta * y : A is symmetric | |
template<typename Tmatrix> | |
VectorGeneral< Treal, Tvector > & | operator= (const XY< MatrixTriangular< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &mv) |
x = op(A) * x : A is triangular | |
Treal | eucl () const |
VectorGeneral< Treal, Tvector > & | operator *= (Treal const alpha) |
VectorGeneral< Treal, Tvector > & | operator= (int const k) |
VectorGeneral< Treal, Tvector > & | operator+= (const XY< Treal, VectorGeneral< Treal, Tvector > > &sv) |
y += alpha * x | |
Tvector const & | getVector () const |
std::string | obj_type_id () const |
Protected Member Functions | |
void | writeToFileProt (std::ofstream &file) const |
Write object to file. | |
void | readFromFileProt (std::ifstream &file) |
Read object from file. | |
void | inMemorySet (bool inMem) |
Make object invalid (false) via this function when object is written to file and valid (true) when object is read from file. | |
Protected Attributes | |
ValidPtr< Tvector > | vectorPtr |
mat::VectorGeneral< Treal, Tvector >::VectorGeneral | ( | ) | [inline] |
mat::VectorGeneral< Treal, Tvector >::VectorGeneral | ( | const VectorGeneral< Treal, Tvector > & | other | ) | [inline, explicit] |
void mat::VectorGeneral< Treal, Tvector >::assign_from_full | ( | std::vector< Treal > const & | fullVector, | |
SizesAndBlocks const & | newRows | |||
) | [inline] |
void mat::VectorGeneral< Treal, Tvector >::clear | ( | ) | [inline, virtual] |
Treal mat::VectorGeneral< Treal, Tvector >::eucl | ( | ) | const [inline] |
void mat::VectorGeneral< Treal, Tvector >::fullvector | ( | std::vector< Treal > & | fullVector | ) | const [inline] |
Tvector const& mat::VectorGeneral< Treal, Tvector >::getVector | ( | ) | const [inline] |
void mat::VectorGeneral< Treal, Tvector >::inMemorySet | ( | bool | inMem | ) | [inline, protected, virtual] |
Make object invalid (false) via this function when object is written to file and valid (true) when object is read from file.
Implements mat::FileWritable.
bool mat::VectorGeneral< Treal, Tvector >::is_empty | ( | ) | const [inline] |
std::string mat::VectorGeneral< Treal, Tvector >::obj_type_id | ( | ) | const [inline, virtual] |
Implements mat::FileWritable.
VectorGeneral<Treal, Tvector>& mat::VectorGeneral< Treal, Tvector >::operator *= | ( | Treal const | alpha | ) | [inline] |
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator+= | ( | const XY< Treal, VectorGeneral< Treal, Tvector > > & | sv | ) |
y += alpha * x
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator+= | ( | const XYZ< Treal, MatrixSymmetric< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > & | smv | ) |
y += alpha * A * x : A is symmetric
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator+= | ( | const XYZ< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > & | smv | ) |
y += alpha * op(A) * x
VectorGeneral<Treal, Tvector>& mat::VectorGeneral< Treal, Tvector >::operator= | ( | int const | k | ) | [inline] |
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator= | ( | const XY< MatrixTriangular< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > & | mv | ) |
x = op(A) * x : A is triangular
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator= | ( | const XYZpUV< Treal, MatrixSymmetric< Treal, Tmatrix >, VectorGeneral< Treal, Tvector >, Treal, VectorGeneral< Treal, Tvector > > & | smvpsv | ) |
y = alpha * A * x + beta * y : A is symmetric
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator= | ( | const XYZ< Treal, MatrixSymmetric< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > & | smv | ) |
y = alpha * A * x : A is symmetric
VectorGeneral<Treal, Tvector>& mat::VectorGeneral< Treal, Tvector >::operator= | ( | const XY< MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > & | mv | ) | [inline] |
y = op(A) * x : A is general
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator= | ( | const XYZpUV< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector >, Treal, VectorGeneral< Treal, Tvector > > & | smvpsv | ) |
y = alpha * op(A) * x + beta * y
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator= | ( | const XYZ< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > & | smv | ) |
y = alpha * op(A) * x
VectorGeneral<Treal, Tvector>& mat::VectorGeneral< Treal, Tvector >::operator= | ( | const VectorGeneral< Treal, Tvector > & | other | ) | [inline] |
void mat::VectorGeneral< Treal, Tvector >::rand | ( | ) | [inline] |
void mat::VectorGeneral< Treal, Tvector >::readFromFileProt | ( | std::ifstream & | file | ) | [inline, protected, virtual] |
void mat::VectorGeneral< Treal, Tvector >::resetSizesAndBlocks | ( | SizesAndBlocks const & | newRows | ) | [inline] |
void mat::VectorGeneral< Treal, Tvector >::writeToFileProt | ( | std::ofstream & | file | ) | const [inline, protected, virtual] |
ValidPtr<Tvector> mat::VectorGeneral< Treal, Tvector >::vectorPtr [protected] |