NPL
Neurological Programs and Libraries
npl::MatrixP Class Referenceabstract

#include <matrix_deprecated.h>

Inherited by npl::Matrix< D1, D2 > [virtual].

Public Member Functions

virtual double & operator[] (size_t row)=0
 Returns row in column 0. More...
 
virtual double & operator() (size_t row, size_t col=0)=0
 Returns value at given row/column. More...
 
virtual const double & operator[] (size_t row) const =0
 Returns row in column 0. More...
 
virtual const double & operator() (size_t row, size_t col=0) const =0
 Returns value at given row/column. More...
 
virtual void mvproduct (const MatrixP *rhs, MatrixP *out) const =0
 Performs matrix-vector product of right hand side (rhs) and the current matrix, writing the result in out. RHS and OUT are cast to the appropriate types (dimensions). Will throw if the dimension requirements are not met. More...
 
virtual void mvproduct (const MatrixP &rhs, MatrixP &out) const =0
 Performs matrix-vector product of right hand side (rhs) and the current matrix, writing the result in out. RHS and OUT are cast to the appropriate types (dimensions). Will throw if the dimension requirements are not met. More...
 
virtual double det () const =0
 
virtual double norm () const =0
 
virtual double sum () const =0
 
virtual size_t rows () const =0
 
virtual size_t cols () const =0
 
bool operator== (const MatrixP &rhs)
 
bool operator!= (const MatrixP &rhs)
 

Detailed Description

Definition at line 25 of file matrix_deprecated.h.

Member Function Documentation

virtual size_t npl::MatrixP::cols ( ) const
pure virtual

Implemented in npl::Matrix< D1, D2 >.

virtual double npl::MatrixP::det ( ) const
pure virtual

Implemented in npl::Matrix< D1, D2 >.

virtual void npl::MatrixP::mvproduct ( const MatrixP rhs,
MatrixP out 
) const
pure virtual

Performs matrix-vector product of right hand side (rhs) and the current matrix, writing the result in out. RHS and OUT are cast to the appropriate types (dimensions). Will throw if the dimension requirements are not met.

Parameters
rhsRight hand side of matrix-vector product
outOutput of matrix-vector product

Implemented in npl::Matrix< D1, D2 >.

virtual void npl::MatrixP::mvproduct ( const MatrixP rhs,
MatrixP out 
) const
pure virtual

Performs matrix-vector product of right hand side (rhs) and the current matrix, writing the result in out. RHS and OUT are cast to the appropriate types (dimensions). Will throw if the dimension requirements are not met.

Parameters
rhsRight hand side of matrix-vector product
outOutput of matrix-vector product

Implemented in npl::Matrix< D1, D2 >.

virtual double npl::MatrixP::norm ( ) const
pure virtual

Implemented in npl::Matrix< D1, D2 >.

bool npl::MatrixP::operator!= ( const MatrixP rhs)
inline

Definition at line 112 of file matrix_deprecated.h.

virtual double& npl::MatrixP::operator() ( size_t  row,
size_t  col = 0 
)
pure virtual

Returns value at given row/column.

Parameters
rowRow to lookup
colCol to lookup
Returns
Value at (row,col)

Implemented in npl::Matrix< D1, D2 >.

virtual const double& npl::MatrixP::operator() ( size_t  row,
size_t  col = 0 
) const
pure virtual

Returns value at given row/column.

Parameters
rowRow to lookup
colCol to lookup
Returns
Value at (row,col)

Implemented in npl::Matrix< D1, D2 >.

bool npl::MatrixP::operator== ( const MatrixP rhs)
inline

Definition at line 98 of file matrix_deprecated.h.

virtual double& npl::MatrixP::operator[] ( size_t  row)
pure virtual

Returns row in column 0.

Parameters
rowRow to lookup
Returns
Value at (row,0)

Implemented in npl::Matrix< D1, D2 >.

virtual const double& npl::MatrixP::operator[] ( size_t  row) const
pure virtual

Returns row in column 0.

Parameters
rowRow to lookup
Returns
Value at (row,0)

Implemented in npl::Matrix< D1, D2 >.

virtual size_t npl::MatrixP::rows ( ) const
pure virtual

Implemented in npl::Matrix< D1, D2 >.

virtual double npl::MatrixP::sum ( ) const
pure virtual

Implemented in npl::Matrix< D1, D2 >.


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