ergo
mat::VectorGeneral Class Reference

#include <VectorGeneral.h>

Inheritance diagram for mat::VectorGeneral:
mat::FileWritable

List of all members.

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

Constructor & Destructor Documentation

mat::VectorGeneral::VectorGeneral ( ) [inline]
mat::VectorGeneral::VectorGeneral ( const VectorGeneral< Treal, Tvector > &  other) [inline, explicit]

Member Function Documentation

void mat::VectorGeneral::assign_from_full ( std::vector< Treal > const &  fullVector,
SizesAndBlocks const &  newRows 
) [inline]
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.

std::string mat::VectorGeneral::obj_type_id ( ) const [inline, virtual]

Implements mat::FileWritable.

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

y += alpha * op(A) * x

References mat::gemv().

template<typename Tmatrix >
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]
template<typename Tmatrix >
VectorGeneral< Treal, Tvector > & mat::VectorGeneral::operator= ( const XYZ< Treal, MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &  smv)

y = alpha * op(A) * x

References mat::gemv().

template<typename Tmatrix >
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().

template<typename Tmatrix >
VectorGeneral<Treal, Tvector>& mat::VectorGeneral::operator= ( const XY< MatrixGeneral< Treal, Tmatrix >, VectorGeneral< Treal, Tvector > > &  mv) [inline]

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

template<typename Tmatrix >
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().

template<typename Tmatrix >
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().

template<typename Tmatrix >
VectorGeneral< Treal, Tvector > & mat::VectorGeneral::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().

VectorGeneral<Treal, Tvector>& mat::VectorGeneral::operator= ( int const  k) [inline]
void mat::VectorGeneral::rand ( ) [inline]
void mat::VectorGeneral::readFromFileProt ( std::ifstream &  ) [inline, protected, virtual]

Read object from file.

Defined in derived class.

Implements mat::FileWritable.

void mat::VectorGeneral::writeToFileProt ( std::ofstream &  ) const [inline, protected, virtual]

Write object to file.

Defined in derived class.

Implements mat::FileWritable.


Member Data Documentation


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