Abstract Matrix class. More...
#include <jrl/mal/abstractmatrix.hh>
Public Member Functions | |
Matrix (const unsigned int rows=0, const unsigned int cols=0) | |
Matrix (InternalMatrix *clone, const bool proprio=false) | |
Matrix (const Matrix ©) | |
virtual | ~Matrix (void) |
InternalMatrix & | accessToMotherLib (void) |
const InternalMatrix & | accessToMotherLib (void) const |
Matrix & | initFromMotherLib (const InternalMatrix &bv) |
Matrix & | resize (const unsigned int nbRows, const unsigned int nbCols, const bool setZero=true) |
unsigned int | nbRows (void) const |
unsigned int | nbCols (void) const |
Matrix & | setZero (void) |
Matrix & | setIdentity (void) |
Matrix & | fill (const FloatType value) |
FloatType | determinant (void) const |
FloatType | trace (void) const |
FloatType | norm (void) const |
FloatType | norm1 (void) const |
FloatType | normInfty (void) const |
FloatType | max (void) const |
FloatType | min (void) const |
FloatType | sumSquare (void) const |
Matrix & | transpose (Matrix &At) const |
Matrix | transpose (void) const |
Matrix & | inverse (Matrix &invMatrix) const |
Matrix | inverse (void) const |
Matrix & | pseudoInverse (Matrix &invMatrix, const FloatType threshold=1e-6, Matrix *Uref=NULL, Matrix *Sref=NULL, Matrix *Vref=NULL) const |
Matrix | pseudoInverse (const FloatType threshold=1e-6, Matrix *U=NULL, Matrix *S=NULL, Matrix *V=NULL) const |
Matrix & | dampedInverse (Matrix &invMatrix, const FloatType threshold=1e-6, Matrix *U=NULL, Matrix *S=NULL, Matrix *V=NULL) const |
Matrix | dampedInverse (const FloatType threshold=1e-6, Matrix *U=NULL, Matrix *S=NULL, Matrix *V=NULL) const |
Matrix & | opposite (Matrix &res) const |
Matrix | opposite (void) const |
Matrix | multiply (const Matrix &B) const |
Matrix & | multiply (const Matrix &B, Matrix &C) const |
Vector | multiply (const Vector &v) const |
Vector & | multiply (const Vector &v, Vector &res) const |
Matrix | addition (const Matrix &B) const |
Matrix & | addition (const Matrix &B, Matrix &C) const |
Matrix | substraction (const Matrix &B) const |
Matrix & | substraction (const Matrix &B, Matrix &C) const |
Matrix | multiply (const FloatType x) const |
Matrix & | multiply (const FloatType x, Matrix &C) const |
Matrix | addition (const FloatType x) const |
Matrix & | addition (const FloatType x, Matrix &C) const |
Matrix | substraction (const FloatType x) const |
Matrix & | substraction (const FloatType x, Matrix &C) const |
Matrix | division (const FloatType x) const |
Matrix & | division (const FloatType x, Matrix &C) const |
FloatType * | datablock (void) |
const FloatType * | datablock (void) const |
Matrix & | extract (const int top, const int left, const int nbrows, const int nbcols, Matrix &C) const |
Matrix | extract (const int top, const int left, const int nbrows, const int nbcols) const |
const FloatType & | elementAt (const int row, const int col) const |
FloatType & | elementAt (const int row, const int col) |
const FloatType & | elementAt (const int elmt) const |
FloatType & | elementAt (const int elmt) |
Vector | getDiagonal (void) const |
Vector & | getDiagonal (Vector &vector) const |
Matrix & | setDiagonal (const Vector &vector) |
Matrix & | stackMatrix (const Matrix &B, Matrix &C) const |
Matrix | stackMatrix (const Matrix &B) const |
Matrix & | juxtaposeMatrix (const Matrix &B, Matrix &C) const |
Matrix | juxtaposeMatrix (const Matrix &B) const |
Matrix & | operator+= (const Matrix &m1) |
Matrix & | operator-= (const Matrix &m1) |
Matrix & | operator*= (const Matrix &m1) |
Matrix & | operator*= (const FloatType x) |
const FloatType & | operator() (const int i, const int j) const |
FloatType & | operator() (const int i, const int j) |
const FloatType & | operator() (const int n) const |
FloatType & | operator() (const int n) |
Matrix & | operator= (const Matrix &m1) |
Friends | |
Matrix & | multiply (const Matrix &A, const Matrix &B, Matrix &C) |
Vector & | multiply (const Matrix &M, const Vector &v, Vector &res) |
Matrix & | addition (const Matrix &A, const Matrix &B, Matrix &C) |
Matrix & | substraction (const Matrix &A, const Matrix &B, Matrix &C) |
Matrix & | multiply (const Matrix &A, const FloatType x, Matrix &C) |
Matrix & | addition (const Matrix &A, const FloatType x, Matrix &C) |
Matrix & | substraction (const Matrix &A, const FloatType x, Matrix &C) |
Matrix & | division (const Matrix &A, const FloatType x, Matrix &C) |
Matrix | operator+ (const Matrix &m1, const Matrix &m2) |
Matrix | operator- (const Matrix &m1, const Matrix &m2) |
Matrix | operator* (const Matrix &m1, const Matrix &m2) |
Matrix | operator- (const Matrix &m) |
Vector | operator* (const Matrix &M, const Vector &v1) |
Vector | operator* (const Vector &v1, const Matrix &M) |
Matrix | operator+ (const FloatType x, const Matrix &m1) |
Matrix | operator- (const FloatType x, const Matrix &m1) |
Matrix | operator* (const FloatType x, const Matrix &m1) |
Matrix | operator/ (const FloatType x, const Matrix &m1) |
Matrix | operator+ (const Matrix &m1, const FloatType x) |
Matrix | operator- (const Matrix &m1, const FloatType x) |
Matrix | operator* (const Matrix &m1, const FloatType x) |
Matrix | operator/ (const Matrix &m1, const FloatType x) |
std::ostream & | operator<< (std::ostream &os, const Matrix &m1) |
std::istream & | operator>> (std::istream &is, Matrix &v1) |
Abstract Matrix class.
maal::abstract::Matrix::Matrix | ( | const unsigned int | rows = 0 , |
const unsigned int | cols = 0 |
||
) |
maal::abstract::Matrix::Matrix | ( | InternalMatrix * | clone, |
const bool | proprio = false |
||
) |
maal::abstract::Matrix::Matrix | ( | const Matrix & | copy | ) |
virtual maal::abstract::Matrix::~Matrix | ( | void | ) | [virtual] |
InternalMatrix& maal::abstract::Matrix::accessToMotherLib | ( | void | ) |
const InternalMatrix& maal::abstract::Matrix::accessToMotherLib | ( | void | ) | const |
Matrix maal::abstract::Matrix::addition | ( | const Matrix & | B | ) | const [inline] |
Matrix& maal::abstract::Matrix::addition | ( | const Matrix & | B, |
Matrix & | C | ||
) | const [inline] |
Matrix maal::abstract::Matrix::addition | ( | const FloatType | x | ) | const [inline] |
Matrix& maal::abstract::Matrix::addition | ( | const FloatType | x, |
Matrix & | C | ||
) | const [inline] |
Matrix& maal::abstract::Matrix::dampedInverse | ( | Matrix & | invMatrix, |
const FloatType | threshold = 1e-6 , |
||
Matrix * | U = NULL , |
||
Matrix * | S = NULL , |
||
Matrix * | V = NULL |
||
) | const [inline] |
Matrix maal::abstract::Matrix::dampedInverse | ( | const FloatType | threshold = 1e-6 , |
Matrix * | U = NULL , |
||
Matrix * | S = NULL , |
||
Matrix * | V = NULL |
||
) | const [inline] |
FloatType* maal::abstract::Matrix::datablock | ( | void | ) | [inline] |
const FloatType* maal::abstract::Matrix::datablock | ( | void | ) | const [inline] |
FloatType maal::abstract::Matrix::determinant | ( | void | ) | const [inline] |
Matrix maal::abstract::Matrix::division | ( | const FloatType | x | ) | const [inline] |
Matrix& maal::abstract::Matrix::division | ( | const FloatType | x, |
Matrix & | C | ||
) | const [inline] |
const FloatType& maal::abstract::Matrix::elementAt | ( | const int | row, |
const int | col | ||
) | const [inline] |
FloatType& maal::abstract::Matrix::elementAt | ( | const int | row, |
const int | col | ||
) | [inline] |
const FloatType& maal::abstract::Matrix::elementAt | ( | const int | elmt | ) | const [inline] |
FloatType& maal::abstract::Matrix::elementAt | ( | const int | elmt | ) | [inline] |
Matrix& maal::abstract::Matrix::extract | ( | const int | top, |
const int | left, | ||
const int | nbrows, | ||
const int | nbcols, | ||
Matrix & | C | ||
) | const [inline] |
Matrix maal::abstract::Matrix::extract | ( | const int | top, |
const int | left, | ||
const int | nbrows, | ||
const int | nbcols | ||
) | const [inline] |
Matrix& maal::abstract::Matrix::fill | ( | const FloatType | value | ) | [inline] |
Vector maal::abstract::Matrix::getDiagonal | ( | void | ) | const [inline] |
Vector& maal::abstract::Matrix::getDiagonal | ( | Vector & | vector | ) | const [inline] |
Matrix& maal::abstract::Matrix::initFromMotherLib | ( | const InternalMatrix & | bv | ) |
Matrix& maal::abstract::Matrix::inverse | ( | Matrix & | invMatrix | ) | const [inline] |
Matrix maal::abstract::Matrix::inverse | ( | void | ) | const [inline] |
Matrix& maal::abstract::Matrix::juxtaposeMatrix | ( | const Matrix & | B, |
Matrix & | C | ||
) | const [inline] |
Matrix maal::abstract::Matrix::juxtaposeMatrix | ( | const Matrix & | B | ) | const [inline] |
FloatType maal::abstract::Matrix::max | ( | void | ) | const [inline] |
FloatType maal::abstract::Matrix::min | ( | void | ) | const [inline] |
Matrix maal::abstract::Matrix::multiply | ( | const Matrix & | B | ) | const [inline] |
Matrix& maal::abstract::Matrix::multiply | ( | const Matrix & | B, |
Matrix & | C | ||
) | const [inline] |
Vector maal::abstract::Matrix::multiply | ( | const Vector & | v | ) | const [inline] |
Vector& maal::abstract::Matrix::multiply | ( | const Vector & | v, |
Vector & | res | ||
) | const [inline] |
Matrix maal::abstract::Matrix::multiply | ( | const FloatType | x | ) | const [inline] |
Matrix& maal::abstract::Matrix::multiply | ( | const FloatType | x, |
Matrix & | C | ||
) | const [inline] |
unsigned int maal::abstract::Matrix::nbCols | ( | void | ) | const [inline] |
unsigned int maal::abstract::Matrix::nbRows | ( | void | ) | const [inline] |
FloatType maal::abstract::Matrix::norm | ( | void | ) | const [inline] |
FloatType maal::abstract::Matrix::norm1 | ( | void | ) | const [inline] |
FloatType maal::abstract::Matrix::normInfty | ( | void | ) | const [inline] |
const FloatType& maal::abstract::Matrix::operator() | ( | const int | i, |
const int | j | ||
) | const [inline] |
FloatType& maal::abstract::Matrix::operator() | ( | const int | i, |
const int | j | ||
) | [inline] |
const FloatType& maal::abstract::Matrix::operator() | ( | const int | n | ) | const [inline] |
FloatType& maal::abstract::Matrix::operator() | ( | const int | n | ) | [inline] |
Matrix& maal::abstract::Matrix::opposite | ( | Matrix & | res | ) | const [inline] |
Matrix maal::abstract::Matrix::opposite | ( | void | ) | const [inline] |
Matrix& maal::abstract::Matrix::pseudoInverse | ( | Matrix & | invMatrix, |
const FloatType | threshold = 1e-6 , |
||
Matrix * | Uref = NULL , |
||
Matrix * | Sref = NULL , |
||
Matrix * | Vref = NULL |
||
) | const |
Matrix maal::abstract::Matrix::pseudoInverse | ( | const FloatType | threshold = 1e-6 , |
Matrix * | U = NULL , |
||
Matrix * | S = NULL , |
||
Matrix * | V = NULL |
||
) | const [inline] |
Matrix& maal::abstract::Matrix::resize | ( | const unsigned int | nbRows, |
const unsigned int | nbCols, | ||
const bool | setZero = true |
||
) | [inline] |
Matrix& maal::abstract::Matrix::setDiagonal | ( | const Vector & | vector | ) | [inline] |
Matrix& maal::abstract::Matrix::setIdentity | ( | void | ) | [inline] |
Matrix& maal::abstract::Matrix::setZero | ( | void | ) | [inline] |
Matrix& maal::abstract::Matrix::stackMatrix | ( | const Matrix & | B, |
Matrix & | C | ||
) | const [inline] |
Matrix maal::abstract::Matrix::stackMatrix | ( | const Matrix & | B | ) | const [inline] |
Matrix maal::abstract::Matrix::substraction | ( | const Matrix & | B | ) | const [inline] |
Matrix& maal::abstract::Matrix::substraction | ( | const Matrix & | B, |
Matrix & | C | ||
) | const [inline] |
Matrix maal::abstract::Matrix::substraction | ( | const FloatType | x | ) | const [inline] |
Matrix& maal::abstract::Matrix::substraction | ( | const FloatType | x, |
Matrix & | C | ||
) | const [inline] |
FloatType maal::abstract::Matrix::sumSquare | ( | void | ) | const [inline] |
FloatType maal::abstract::Matrix::trace | ( | void | ) | const [inline] |
Matrix& maal::abstract::Matrix::transpose | ( | Matrix & | At | ) | const [inline] |
Matrix maal::abstract::Matrix::transpose | ( | void | ) | const [inline] |
std::ostream& operator<< | ( | std::ostream & | os, |
const Matrix & | m1 | ||
) | [friend] |
std::istream& operator>> | ( | std::istream & | is, |
Matrix & | v1 | ||
) | [friend] |
Matrix& substraction | ( | const Matrix & | A, |
const Matrix & | B, | ||
Matrix & | C | ||
) | [friend] |
Matrix& substraction | ( | const Matrix & | A, |
const FloatType | x, | ||
Matrix & | C | ||
) | [friend] |