ergo
mat::VectorGeneral< Treal, Tvector > Class Template Reference

#include <MatrixBase.h>

Inheritance diagram for mat::VectorGeneral< Treal, Tvector >:
mat::FileWritable

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
 
- Public Member Functions inherited from mat::FileWritable
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...
 
- Protected Member Functions inherited from mat::FileWritable
 FileWritable ()
 Gives each object a unique ID-number and filename. More...
 
virtual ~FileWritable ()
 Removes file, if any. More...
 
 FileWritable (FileWritable const &)
 
FileWritableoperator= (FileWritable const &)
 

Protected Attributes

ValidPtr< Tvector > vectorPtr
 

Additional Inherited Members

- Static Public Member Functions inherited from mat::FileWritable
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 ()
 
- Protected Types inherited from mat::FileWritable
typedef std::map< std::string, double > TypeTimeMap
 
typedef std::map< std::string, int > TypeCountMap
 
typedef std::set< FileWritable * > ObjPtrSet
 
- Static Protected Member Functions inherited from mat::FileWritable
static std::string getStatsTime (TypeTimeMap &theMap)
 
static std::string getStatsCount (TypeCountMap &theMap)
 
static std::string getStatsFileSizes (ObjPtrSet const &set)
 

Constructor & Destructor Documentation

◆ VectorGeneral() [1/3]

template<typename Treal, typename Tvector>
mat::VectorGeneral< Treal, Tvector >::VectorGeneral ( SizesAndBlocks const &  newRows)
inline

◆ VectorGeneral() [2/3]

template<typename Treal, typename Tvector>
mat::VectorGeneral< Treal, Tvector >::VectorGeneral ( )
inline

◆ VectorGeneral() [3/3]

template<typename Treal, typename Tvector>
mat::VectorGeneral< Treal, Tvector >::VectorGeneral ( const VectorGeneral< Treal, Tvector > &  other)
inlineexplicit

Member Function Documentation

◆ assign_from_full()

template<typename Treal, typename Tvector>
void mat::VectorGeneral< Treal, Tvector >::assign_from_full ( std::vector< Treal > const &  fullVector,
SizesAndBlocks const &  newRows 
)
inline

◆ clear()

template<typename Treal, typename Tvector>
void mat::VectorGeneral< Treal, Tvector >::clear ( )
inlinevirtual

Release memory for the information written to file.

Implements mat::FileWritable.

◆ clear_structure()

template<typename Treal, typename Tvector>
void mat::VectorGeneral< Treal, Tvector >::clear_structure ( )
inline

◆ eucl()

template<typename Treal, typename Tvector>
Treal mat::VectorGeneral< Treal, Tvector >::eucl ( ) const
inline

◆ fullvector()

◆ getVector()

template<typename Treal, typename Tvector>
Tvector const& mat::VectorGeneral< Treal, Tvector >::getVector ( ) const
inline

◆ inMemorySet()

template<typename Treal, typename Tvector>
void mat::VectorGeneral< Treal, Tvector >::inMemorySet ( bool  )
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.

◆ is_empty()

◆ obj_type_id()

template<typename Treal, typename Tvector>
std::string mat::VectorGeneral< Treal, Tvector >::obj_type_id ( ) const
inlinevirtual

Implements mat::FileWritable.

◆ operator*=()

template<typename Treal, typename Tvector>
VectorGeneral<Treal, Tvector>& mat::VectorGeneral< Treal, Tvector >::operator*= ( Treal const  alpha)
inline

◆ operator+=() [1/3]

template<typename Treal, typename Tvector>
template<typename Tmatrix >
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator+= ( const XYZ< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &  smv)

y += alpha * op(A) * x

◆ operator+=() [2/3]

template<typename Treal, typename Tvector>
template<typename Tmatrix >
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

◆ operator+=() [3/3]

template<typename Treal, typename Tvector>
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator+= ( const XY< Treal, VectorGeneral< Treal, Tvector > > &  sv)

y += alpha * x

◆ operator=() [1/8]

template<typename Treal, typename Tvector>
VectorGeneral<Treal, Tvector>& mat::VectorGeneral< Treal, Tvector >::operator= ( const VectorGeneral< Treal, Tvector > &  other)
inline

◆ operator=() [2/8]

template<typename Treal, typename Tvector>
template<typename Tmatrix >
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator= ( const XYZ< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &  smv)

y = alpha * op(A) * x

◆ operator=() [3/8]

template<typename Treal, typename Tvector>
template<typename Tmatrix >
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

◆ operator=() [4/8]

template<typename Treal, typename Tvector>
template<typename Tmatrix >
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

◆ operator=() [5/8]

template<typename Treal, typename Tvector>
template<typename Tmatrix >
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

◆ operator=() [6/8]

template<typename Treal, typename Tvector>
template<typename Tmatrix >
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

◆ operator=() [7/8]

template<typename Treal, typename Tvector>
template<typename Tmatrix >
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

◆ operator=() [8/8]

template<typename Treal, typename Tvector>
VectorGeneral<Treal, Tvector>& mat::VectorGeneral< Treal, Tvector >::operator= ( int const  k)
inline

◆ rand()

◆ readFromFileProt()

template<typename Treal, typename Tvector>
void mat::VectorGeneral< Treal, Tvector >::readFromFileProt ( std::ifstream &  )
inlineprotectedvirtual

Read object from file.

Defined in derived class.

Implements mat::FileWritable.

◆ resetSizesAndBlocks()

◆ writeToFileProt()

template<typename Treal, typename Tvector>
void mat::VectorGeneral< Treal, Tvector >::writeToFileProt ( std::ofstream &  ) const
inlineprotectedvirtual

Write object to file.

Defined in derived class.

Implements mat::FileWritable.

Member Data Documentation

◆ vectorPtr


The documentation for this class was generated from the following files: