ergo
|
#include <MatrixBase.h>
Public Member Functions | |
void | resetSizesAndBlocks (SizesAndBlocks const &newRows) |
bool | is_empty () const |
void | clear_structure () |
VectorGeneral (SizesAndBlocks const &newRows) | |
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. More... | |
void | rand () |
template<typename Tmatrix > | |
VectorGeneral< Treal, Tvector > & | operator= (const XYZ< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &smv) |
y = alpha * op(A) * x More... | |
template<typename Tmatrix > | |
VectorGeneral< Treal, Tvector > & | operator+= (const XYZ< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &smv) |
y += alpha * op(A) * x More... | |
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 More... | |
template<typename Tmatrix > | |
VectorGeneral< Treal, Tvector > & | operator= (const XY< MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &mv) |
y = op(A) * x : A is general More... | |
template<typename Tmatrix > | |
VectorGeneral< Treal, Tvector > & | operator= (const XYZ< Treal, MatrixSymmetric< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &smv) |
y = alpha * A * x : A is symmetric More... | |
template<typename Tmatrix > | |
VectorGeneral< Treal, Tvector > & | operator+= (const XYZ< Treal, MatrixSymmetric< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &smv) |
y += alpha * A * x : A is symmetric More... | |
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 More... | |
template<typename Tmatrix > | |
VectorGeneral< Treal, Tvector > & | operator= (const XY< MatrixTriangular< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &mv) |
y = op(A) * x : A is triangular More... | |
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 More... | |
Tvector const & | getVector () const |
std::string | obj_type_id () const |
![]() | |
void | writeToFile () |
Write object to file if filewrite is active. More... | |
void | readFromFile () |
Read object from file if filewrite is active. More... | |
void | copyToFile (const char *destFileName) |
void | copyFromFile (const char *sourceFileName) |
bool | isOnFile () |
Check if object is on file. More... | |
long int | fileSize () |
Return file size. More... | |
Protected Member Functions | |
void | writeToFileProt (std::ofstream &file) const |
Write object to file. More... | |
void | readFromFileProt (std::ifstream &file) |
Read object from file. More... | |
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. More... | |
![]() | |
FileWritable () | |
Gives each object a unique ID-number and filename. More... | |
virtual | ~FileWritable () |
Removes file, if any. More... | |
FileWritable (FileWritable const &) | |
FileWritable & | operator= (FileWritable const &) |
Protected Attributes | |
ValidPtr< Tvector > | vectorPtr |
Additional Inherited Members | |
![]() | |
static void | setPath (char const *const newPath) |
Set the path to which the objects will be written. More... | |
static void | activate () |
Activate the filewriting. More... | |
static std::string | getStatsFileSizes () |
static std::string | writeAndReadAll () |
static void | resetStats () |
static std::string | getStatsTimeWrite () |
static std::string | getStatsTimeRead () |
static std::string | getStatsTimeCopyAndAssign () |
static std::string | getStatsCountWrite () |
static std::string | getStatsCountRead () |
static std::string | getStatsCountCopyAndAssign () |
![]() | |
typedef std::map< std::string, double > | TypeTimeMap |
typedef std::map< std::string, int > | TypeCountMap |
typedef std::set< FileWritable * > | ObjPtrSet |
![]() | |
static std::string | getStatsTime (TypeTimeMap &theMap) |
static std::string | getStatsCount (TypeCountMap &theMap) |
static std::string | getStatsFileSizes (ObjPtrSet const &set) |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
Referenced by GetDensFromFock::get_dens_from_fock().
|
inlinevirtual |
Release memory for the information written to file.
Implements mat::FileWritable.
|
inline |
|
inline |
Referenced by eigvec::compute_rayleigh_quotient(), eigvec::lanczos_method(), main(), mainFun(), and eigvec::power_method().
|
inline |
|
inline |
|
inlineprotectedvirtual |
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.
|
inline |
Referenced by mat::VectorGeneral< ergo_real, Vectorrr >::clear(), GetDensFromFock::create_checkpoint(), SCF_unrestricted::create_eigvec_file(), SCF_restricted::create_eigvec_file(), SCF_unrestricted::create_gabedit_file(), SCF_restricted::create_gabedit_file(), GetDensFromFock::get_dens_from_fock_sparse(), SCF_restricted::get_expected_values_pos_operator(), SCF_unrestricted::get_new_density_matrix(), SCF_restricted::get_new_density_matrix(), main(), SCF_restricted::output_density_images_orbital(), mat::VectorGeneral< ergo_real, Vectorrr >::readFromFileProt(), and mat::VectorGeneral< ergo_real, Vectorrr >::writeToFileProt().
|
inlinevirtual |
Implements mat::FileWritable.
|
inline |
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 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< Treal, VectorGeneral< Treal, Tvector > > & | sv | ) |
y += alpha * x
|
inline |
Referenced by mat::VectorGeneral< ergo_real, Vectorrr >::operator=().
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 XYZpUV< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector >, Treal, VectorGeneral< Treal, Tvector > > & | smvpsv | ) |
y = alpha * op(A) * x + beta * y
|
inline |
y = op(A) * x : A is general
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 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 XY< MatrixTriangular< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > & | mv | ) |
y = op(A) * x : A is triangular
x = op(A) * x : A is triangular
|
inline |
|
inline |
|
inlineprotectedvirtual |
|
inline |
Referenced by mat::VectorGeneral< ergo_real, Vectorrr >::assign_from_full(), mat::MatrixTriangular< Treal, Tmatrix >::eucl(), mat::MatrixGeneral< Treal, Tmatrix >::eucl(), mat::MatrixSymmetric< Treal, Tmatrix >::eucl(), main(), mainFun(), GetDensFromFock::restore_from_checkpoint(), and mat::VectorGeneral< ergo_real, Vectorrr >::VectorGeneral().
|
inlineprotectedvirtual |
|
protected |
Referenced by mat::VectorGeneral< ergo_real, Vectorrr >::assign_from_full(), mat::VectorGeneral< ergo_real, Vectorrr >::clear(), mat::VectorGeneral< ergo_real, Vectorrr >::clear_structure(), 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< 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().