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

#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 ()
 
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
 

Protected Member Functions

void writeToFileProt (std::ofstream &file) const
 
void readFromFileProt (std::ifstream &file)
 
void inMemorySet (bool inMem)
 

Protected Attributes

ValidPtr< Tvector > vectorPtr
 

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)
inline

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 ( )
inline

◆ 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  inMem)
inlineprotected

◆ is_empty()

◆ obj_type_id()

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

◆ 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 >
VectorGeneral< Treal, Tvector > & mat::VectorGeneral< Treal, Tvector >::operator+= ( const XY< Treal, VectorGeneral< Treal, Tvector > > &  sv)

y += alpha * x

References mat::axpy().

◆ operator+=() [2/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

References mat::gemv().

◆ operator+=() [3/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

References mat::symv().

◆ 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 XY< MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &  mv)
inline

y = op(A) * x : A is general

References mat::VectorGeneral< Treal, Tvector >::operator=().

◆ operator=() [3/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

References mat::trmv().

◆ operator=() [4/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

References mat::gemv().

◆ 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

References mat::symv().

◆ operator=() [6/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

References mat::gemv().

◆ operator=() [7/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

References mat::symv().

◆ 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 &  file)
inlineprotected

◆ resetSizesAndBlocks()

◆ writeToFileProt()

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

Member Data Documentation

◆ vectorPtr


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