#include <VectorGeneral.h>
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) |
y = 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] |
Referenced by get_dens_from_fock_general().
void mat::VectorGeneral< Treal, Tvector >::clear | ( | ) | [inline, virtual] |
Release memory for the information written to file.
Implements mat::FileWritable.
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] |
Referenced by mat::operator*().
void mat::VectorGeneral< Treal, Tvector >::inMemorySet | ( | bool | ) | [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] |
Referenced by mat::VectorGeneral< ergo_real, Vectorrr >::clear(), SCF_restricted::create_gabedit_file(), SCF_restricted::create_homo_eigvec_file(), SCF_restricted::create_lumo_eigvec_file(), get_dens_from_fock_sparse(), mat::VectorGeneral< ergo_real, Vectorrr >::readFromFileProt(), and mat::VectorGeneral< ergo_real, Vectorrr >::writeToFileProt().
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 | ) | [inline] |
y += alpha * x
References mat::axpy().
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator+= | ( | const XYZ< Treal, MatrixSymmetric< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > & | smv | ) | [inline] |
y += alpha * A * x : A is symmetric
References mat::symv().
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator+= | ( | const XYZ< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > & | smv | ) | [inline] |
y += alpha * op(A) * x
References mat::gemv().
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 | ) | [inline] |
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator= | ( | const XYZpUV< Treal, MatrixSymmetric< Treal, Tmatrix >, VectorGeneral< Treal, Tvector >, Treal, VectorGeneral< Treal, Tvector > > & | smvpsv | ) | [inline] |
y = alpha * A * x + beta * y : A is symmetric
References mat::symv().
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator= | ( | const XYZ< Treal, MatrixSymmetric< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > & | smv | ) | [inline] |
y = alpha * A * x : A is symmetric
References mat::symv().
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 | ) | [inline] |
y = alpha * op(A) * x + beta * y
References mat::gemv().
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator= | ( | const XYZ< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > & | smv | ) | [inline] |
y = alpha * op(A) * x
References mat::gemv(), and mat::VectorGeneral< Treal, Tvector >::vectorPtr.
VectorGeneral<Treal, Tvector>& mat::VectorGeneral< Treal, Tvector >::operator= | ( | const VectorGeneral< Treal, Tvector > & | other | ) | [inline] |
Reimplemented from mat::FileWritable.
Referenced by mat::VectorGeneral< ergo_real, Vectorrr >::operator=().
void mat::VectorGeneral< Treal, Tvector >::rand | ( | ) | [inline] |
void mat::VectorGeneral< Treal, Tvector >::readFromFileProt | ( | std::ifstream & | ) | [inline, protected, virtual] |
void mat::VectorGeneral< Treal, Tvector >::resetSizesAndBlocks | ( | SizesAndBlocks const & | newRows | ) | [inline] |
void mat::VectorGeneral< Treal, Tvector >::writeToFileProt | ( | std::ofstream & | ) | const [inline, protected, virtual] |
ValidPtr<Tvector> mat::VectorGeneral< Treal, Tvector >::vectorPtr [protected] |
Referenced by mat::VectorGeneral< ergo_real, Vectorrr >::assign_from_full(), mat::VectorGeneral< ergo_real, Vectorrr >::clear(), mat::VectorGeneral< ergo_real, Vectorrr >::eucl(), mat::VectorGeneral< ergo_real, Vectorrr >::fullvector(), mat::VectorGeneral< ergo_real, Vectorrr >::getVector(), mat::VectorGeneral< ergo_real, Vectorrr >::inMemorySet(), mat::VectorGeneral< ergo_real, Vectorrr >::is_empty(), mat::VectorGeneral< ergo_real, Vectorrr >::operator*=(), mat::VectorGeneral< Treal, Tvector >::operator=(), mat::VectorGeneral< ergo_real, Vectorrr >::operator=(), mat::VectorGeneral< ergo_real, Vectorrr >::rand(), mat::VectorGeneral< ergo_real, Vectorrr >::readFromFileProt(), mat::VectorGeneral< ergo_real, Vectorrr >::resetSizesAndBlocks(), mat::VectorGeneral< ergo_real, Vectorrr >::VectorGeneral(), and mat::VectorGeneral< ergo_real, Vectorrr >::writeToFileProt().