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