KrisLibrary  1.0.0
Public Types | Public Member Functions | List of all members
Math::BlockVector Class Reference
Inheritance diagram for Math::BlockVector:

Public Types

typedef std::vector< VectorBaseT
 

Public Member Functions

 BlockVector (int numBlocks)
 
 BlockVector (int numBlocks, int vecSize)
 
 BlockVector (int numBlocks, int vecSize, Real initVal)
 
 BlockVector (int numBlocks, const Vector &initVal)
 
int numBlocks () const
 
void resize (int numBlocks)
 
void resize (int numBlocks, int vecSize)
 
void resize (int numBlocks, int vecSize, Real initVal)
 
void resizeSimilar (const BlockVector &)
 
void operator+= (const BlockVector &a)
 
void operator-= (const BlockVector &a)
 
void operator*= (Real c)
 
void operator/= (Real c)
 
void copy (const BlockVector &)
 
void swap (BlockVector &)
 
void add (const BlockVector &, const BlockVector &)
 
void sub (const BlockVector &, const BlockVector &)
 
void mul (const BlockVector &, Real c)
 
void div (const BlockVector &, Real c)
 
void inc (const BlockVector &)
 
void dec (const BlockVector &)
 
void madd (const BlockVector &, Real c)
 
void setZero ()
 
void set (Real c)
 
void set (const BlockVector &)
 
void setNegative (const BlockVector &)
 
void inplaceNegative ()
 
void inplaceMul (Real c)
 
void inplaceDiv (Real c)
 
Real dot (const BlockVector &) const
 
Real normSquared () const
 
Real norm () const
 
bool hasDims (const BlockVector &) const
 
bool hasDims (int numBlocks, int vecSize) const
 

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