Jive reference manual
List of all members | Public Member Functions | Protected Member Functions
jive::implict::TransientMatrix Class Reference

#include <jive/implict/TransientMatrix.h>

Inheritance diagram for jive::implict::TransientMatrix:
Inheritance graph

Public Member Functions

 TransientMatrix (const String &name, int order, const Ref< Model > &model, const Properties &globdat)
 
virtual void resetEvents ()
 
virtual Shape shape () const
 Returns the shape of this matrix. More...
 
virtual void matmul (const Vector &lhs, const Vector &rhs) const
 Matrix-vector multiplication. More...
 
virtual bool hasTrait (const String &trait) const
 
virtual void * getExtByID (ExtensionID extID) const
 
Ref< AbstractMatrixgetMatrix () const
 
AbstractMatrixgetMatrix (int imat) const
 
void invalidate ()
 
void update (const Vector &fint, const Properties &globdat)
 
AbstractMatrixupdateMatrix0 (const Vector &fint, const Properties &globdat)
 
AbstractMatrixupdateMatrix1 (const Properties &globdat)
 
AbstractMatrixupdateMatrix2 (const Properties &globdat)
 
void setCoeffs (double a=1.0, double b=0.0, double c=0.0)
 
- Public Member Functions inherited from jive::algebra::AbstractMatrix
bool isSquare () const
 Tests whether this matrix is square. More...
 
virtual jem::ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
- Public Member Functions inherited from jem::Object
virtual String toString () const
 Returns a short textual description of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Protected Member Functions

virtual ~TransientMatrix ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 

Additional Inherited Members

- Public Types inherited from jive::algebra::AbstractMatrix
typedef AbstractMatrix Self
 The type of this class. More...
 
typedef jem::Tuple< int, 2 > Shape
 A type representing the shape of a matrix. More...
 
typedef util::Vector Vector
 A vector type. More...
 
- Static Public Member Functions inherited from jive::algebra::AbstractMatrix
static jem::ClassgetType ()
 
- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 
- Public Attributes inherited from jive::algebra::AbstractMatrix
jem::util::Event< Self & > newShapeEvent
 Signals that the shape of this matrix has changed. More...
 
jem::util::Event< Self & > newValuesEvent
 Signals that the contents of this matrix have been modified. More...
 

Constructor & Destructor Documentation

jive::implict::TransientMatrix::TransientMatrix ( const String name,
int  order,
const Ref< Model > &  model,
const Properties globdat 
)
virtual jive::implict::TransientMatrix::~TransientMatrix ( )
protectedvirtual

Member Function Documentation

virtual void jive::implict::TransientMatrix::resetEvents ( )
virtual
virtual Shape jive::implict::TransientMatrix::shape ( ) const
virtual

Returns the shape of this matrix. If s denotes the returned Shape object, then s[0] equals the number of rows and s[1] equals the number of columns in this matrix.

Returns
The shape of this matrix.

Implements jive::algebra::AbstractMatrix.

virtual void jive::implict::TransientMatrix::matmul ( const Vector lhs,
const Vector rhs 
) const
virtual

Multiplies the vector rhs with this matrix and stores the result in the vector lhs. The sizes of the two vectors must be compatible with the shape of this matrix.

Parameters
lhs- the result vector.
rhs- the vector to be multiplied by this matrix.
Precondition
lhs.size() == shape()[0] &&
rhs.size() == shape()[1]

Implements jive::algebra::AbstractMatrix.

virtual bool jive::implict::TransientMatrix::hasTrait ( const String trait) const
virtual
virtual void* jive::implict::TransientMatrix::getExtByID ( ExtensionID  extID) const
virtual
Ref<AbstractMatrix> jive::implict::TransientMatrix::getMatrix ( ) const
AbstractMatrix* jive::implict::TransientMatrix::getMatrix ( int  imat) const
void jive::implict::TransientMatrix::invalidate ( )
void jive::implict::TransientMatrix::update ( const Vector fint,
const Properties globdat 
)
AbstractMatrix* jive::implict::TransientMatrix::updateMatrix0 ( const Vector fint,
const Properties globdat 
)
AbstractMatrix* jive::implict::TransientMatrix::updateMatrix1 ( const Properties globdat)
AbstractMatrix* jive::implict::TransientMatrix::updateMatrix2 ( const Properties globdat)
void jive::implict::TransientMatrix::setCoeffs ( double  a = 1.0,
double  b = 0.0,
double  c = 0.0 
)