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

#include <VectorGeneral.h>

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

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)
 x = 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

template<typename Treal, typename Tvector>
class mat::VectorGeneral< Treal, Tvector >


Constructor & Destructor Documentation

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

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


Member Function Documentation

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

template<typename Treal, typename Tvector>
void mat::VectorGeneral< Treal, Tvector >::clear (  )  [inline, virtual]

Release memory for the information written to file.

Implements mat::FileWritable.

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

template<typename Treal, typename Tvector>
void mat::VectorGeneral< Treal, Tvector >::fullvector ( std::vector< Treal > &  fullVector  )  const [inline]

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

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

template<typename Treal, typename Tvector>
bool mat::VectorGeneral< Treal, Tvector >::is_empty (  )  const [inline]

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

Implements mat::FileWritable.

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

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

y += alpha * x

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

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

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

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  ) 

x = op(A) * x : A is triangular

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

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

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

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

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

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

template<typename Treal, typename Tvector>
void mat::VectorGeneral< Treal, Tvector >::rand (  )  [inline]

template<typename Treal, typename Tvector>
void mat::VectorGeneral< Treal, Tvector >::readFromFileProt ( std::ifstream &  file  )  [inline, protected, virtual]

Read object from file.

Defined in derived class.

Implements mat::FileWritable.

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

template<typename Treal, typename Tvector>
void mat::VectorGeneral< Treal, Tvector >::writeToFileProt ( std::ofstream &  file  )  const [inline, protected, virtual]

Write object to file.

Defined in derived class.

Implements mat::FileWritable.


Member Data Documentation

template<typename Treal, typename Tvector>
ValidPtr<Tvector> mat::VectorGeneral< Treal, Tvector >::vectorPtr [protected]


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 09:32:03 2012 for ergo by  doxygen 1.4.7