A wrapper around an existing matrix (of any kind) that allows operating on a subrange of the elements. More...
#include <mrpt/math/CMatrixViews.h>


Classes | |
| struct | mrpt_container |
| struct | mrpt_matrix_tag_templ |
Public Types | |
| enum | dummy_enum { mrpt_matrix_type_ncols = -1, mrpt_matrix_type_nrows = -1 } |
| typedef CSubmatrixView < MATRIXTYPE, NR, NC > | mrpt_autotype |
| typedef void | mrpt_matrix_tag |
Public Member Functions | |
Methods common to all containers | |
| size_t | countNonZero () const |
| void | fill (const value_type &val) |
| value_type | maximum (size_t *maxIndex=NULL) const |
| value_type | minimum (size_t *minIndex=NULL) const |
| void | minimum_maximum (value_type &out_min, value_type &out_max, size_t *minIndex=NULL, size_t *maxIndex=NULL) const |
| value_type | norm_inf (size_t *maxIndex=NULL) const |
| value_type | sumAll () const |
| template<typename RET_TYPE > | |
| RET_TYPE | sumAllRetType () const |
| template<class CONTAINEROUT > | |
| void | cumsum (CONTAINEROUT &out) const |
| template<class CONTAINEROUT > | |
| CONTAINEROUT | cumsum () const |
| template<class CONTAINER2 > | |
| size_t | countCommonElements (const CONTAINER2 &b) const |
| std::vector< double > | histogram (double limit_min, double limit_max, size_t number_bins, bool do_normalization=false) const |
| template<class F > | |
| mrpt_autotype & | applyToAllElements (value_type(*function)(value_type)) |
| mrpt_autotype & | Sqrt () |
| mrpt_autotype & | Abs () |
| mrpt_autotype & | Square () |
| mrpt_autotype & | Exp () |
| mrpt_autotype & | Log () |
| value_type | squareNorm () const |
| value_type | norm () const |
| double | mean () const |
| void | adjustRange (const value_type min_val, const value_type max_val) |
| void | normalize (const value_type min_val=0, const value_type max_val=1) |
| double | std (bool unbiased=true) const |
| void | meanAndStd (double &out_mean, double &out_std, bool unbiased=true) |
Protected Attributes | |
| MATRIXTYPE & | base |
| size_t | firstRow |
| size_t | firstCol |
Methods common to all matrices | |
|
| |
| mrpt_autotype | operator+ () |
| mrpt_autotype | operator- () const |
| mrpt_autotype & | operator+= (const value_type n) |
| mrpt_autotype & | operator-= (const value_type n) |
| mrpt_autotype & | operator*= (const value_type n) |
| mrpt_autotype & | operator/= (const value_type n) |
| template<typename OTHERMATRIX > | |
| OTHERMATRIX::template mrpt_matrix_tag_templ< void > ::void_type | operator*= (const OTHERMATRIX &m) |
| template<typename OTHERMATRIX > | |
| mrpt_autotype & | add_At (const OTHERMATRIX &m) |
| template<typename OTHERMATRIX > | |
| mrpt_autotype & | add_Ac (const OTHERMATRIX &m, const value_type c) |
| template<typename OTHERMATRIX > | |
| mrpt_autotype & | substract_At (const OTHERMATRIX &m) |
| template<typename OTHERMATRIX > | |
| mrpt_autotype & | substract_An (const OTHERMATRIX &m, const size_t n) |
| template<typename OTHERMATRIX > | |
| mrpt_autotype & | substract_Ac (const OTHERMATRIX &m, const value_type c) |
| template<typename OTHERMATRIX > | |
| mrpt_autotype & | add_AAt (const OTHERMATRIX &m) |
| template<typename OTHERMATRIX > | |
| mrpt_autotype & | substract_AAt (const OTHERMATRIX &m) |
| bool | empty () const |
| template<class MATRIX1 , class MATRIX2 > | |
| void | multiply (const MATRIX1 &A, const MATRIX2 &B) |
| template<class MATRIX1 , class MATRIX2 > | |
| void | multiply_AB (const MATRIX1 &A, const MATRIX2 &B) |
| template<typename OTHERVECTOR1 , typename OTHERVECTOR2 > | |
| void | multiply_Ab (const OTHERVECTOR1 &vIn, OTHERVECTOR2 &vOut, bool accumToOutput=false) const |
| template<typename OTHERVECTOR1 , typename OTHERVECTOR2 > | |
| void | multiply_Atb (const OTHERVECTOR1 &vIn, OTHERVECTOR2 &vOut, bool accumToOutput=false) const |
| template<typename MAT_C , typename MAT_R > | |
| void | multiply_HCHt (const MAT_C &C, MAT_R &R, bool accumResultInOutput=false, bool allow_submatrix_mult=false) const |
| template<typename MAT_C > | |
| value_type | multiply_HCHt_scalar (const MAT_C &C) const |
| template<typename MAT_C > | |
| value_type | multiply_HtCH_scalar (const MAT_C &C) const |
| template<typename MAT_C , typename MAT_R > | |
| void | multiply_HtCH (const MAT_C &C, MAT_R &R, bool accumResultInOutput=false, bool allow_submatrix_mult=false) const |
| template<class MAT_A , class MAT_OUT > | |
| void | multiply_subMatrix (const MAT_A &A, MAT_OUT &outResult, const size_t A_cols_offset, const size_t A_rows_offset, const size_t A_col_count) const |
| template<class MAT_A , class MAT_B , class MAT_C > | |
| void | multiply_ABC (const MAT_A &A, const MAT_B &B, const MAT_C &C) |
| template<class MAT_A , class MAT_B , class MAT_C > | |
| void | multiply_ABCt (const MAT_A &A, const MAT_B &B, const MAT_C &C) |
| template<class MAT_A , class MAT_B > | |
| void | multiply_ABt (const MAT_A &A, const MAT_B &B) |
| template<class MAT_A > | |
| void | multiply_AAt (const MAT_A &A) |
| template<class MAT_A > | |
| void | multiply_AtA (const MAT_A &A) |
| template<class MAT_A , class MAT_B > | |
| void | multiply_result_is_symmetric (const MAT_A &A, const MAT_B &B) |
| template<typename OTHERMATRIX > | |
| mrpt_autotype & | assignMatrix (const OTHERMATRIX &m) |
| template<typename OTHERMATRIX > | |
| mrpt_autotype & | assignMatrixTransposed (const OTHERMATRIX &m) |
| mrpt_autotype & | operator= (const TPose2D &p) |
| mrpt_autotype & | operator= (const TPose3D &p) |
| mrpt_autotype & | operator= (const TPose3DQuat &p) |
| mrpt_autotype & | operator= (const TPoint2D &p) |
| mrpt_autotype & | operator= (const TPoint3D &p) |
| mrpt_autotype & | operator= (const mrpt::poses::CPose2D &p) |
| mrpt_autotype & | operator= (const mrpt::poses::CPose3D &p) |
| mrpt_autotype & | operator= (const mrpt::poses::CPose3DQuat &p) |
| mrpt_autotype & | operator= (const mrpt::poses::CPoint2D &p) |
| mrpt_autotype & | operator= (const mrpt::poses::CPoint3D &p) |
| value_type | _E (const size_t row, const size_t col) const |
| value_type & | _E (const size_t row, const size_t col) |
| value_type | _A (const size_t n) const |
| value_type & | _A (const size_t n) |
| bool | IsSquare () const |
| bool | isSquare () const |
| bool | isSingular (const value_type epsilon=0) const |
| value_type | trace () const |
| template<class MAT_OUT > | |
| void | pseudoInverse (MAT_OUT &out) const |
| template<class MAT_OUT > | |
| MAT_OUT | pseudoInverse () const |
| value_type | det () const |
| template<class MATRIXOUT > | |
| void | inv (MATRIXOUT &out) const |
| mrpt_autotype | inv () const |
| template<class MATRIXOUT > | |
| void | inv_fast (MATRIXOUT &out) |
| template<class MAT2 , class MAT3 > | |
| void | leftDivideSquare (const MAT2 &A, MAT3 &RES) const |
| template<class MAT2 , class MAT3 > | |
| void | rightDivideSquare (const MAT2 &B, MAT3 &RES) const |
| template<typename MAT2 > | |
| void | fastLeftDivideSquare (MAT2 &A) |
| template<typename MAT2 > | |
| void | fastRightDivideSquare (MAT2 &B) |
| void | saveToTextFile (const std::string &file, mrpt::math::TMatrixTextFileFormat fileFormat=MATRIX_FORMAT_ENG, bool appendMRPTHeader=false, const std::string &userHeader=std::string("")) const |
| std::string | inMatlabFormat (const size_t decimal_digits=6) const |
| int | pivot (const size_t row) |
| template<class MATRIXOUT > | |
| bool | chol (MATRIXOUT &out) const |
| template<class MATRIX1 , class MATRIX2 > | |
| MATRIX1::template mrpt_matrix_tag_templ < typename MATRIX2::mrpt_matrix_tag > ::void_type | eigenVectors (MATRIX1 &eVecs, MATRIX2 &eVals) const |
| template<class MATRIX1 , class VECTOR1 > | |
| void | eigenVectorsVec (MATRIX1 &eVecs, VECTOR1 &eVals) const |
| template<class VECTOR1 > | |
| void | eigenValues (VECTOR1 &eVals) const |
| void | setIdentity () |
| void | setIdentity (size_t N) |
| size_t | rank (value_type eps=1e-7) const |
| template<class MATRIXLIKE > | |
| void | insertMatrix (const size_t nRow, const size_t nCol, const MATRIXLIKE &in) |
| template<class MATRIXLIKE > | |
| void | insertMatrixTranspose (const size_t nRow, const size_t nCol, const MATRIXLIKE &in) |
| template<class MATOUT > | |
| void | extractMatrix (const size_t first_row, const size_t first_col, MATOUT &outMat) const |
| template<class MATOUT > | |
| void | extractMatrix (const size_t first_row, const size_t first_col, const size_t nRows, const size_t nCols, MATOUT &outMat) const |
| template<class VECLIKE > | |
| void | extractRow (const size_t nRow, VECLIKE &out, const size_t startingCol=0) const |
| template<class VECLIKE > | |
| void | extractCol (const size_t nCol, VECLIKE &out, const size_t startingRow=0) const |
| template<class VECLIKE > | |
| void | insertRow (const size_t nRow, VECLIKE &in, const size_t startingCol=0) |
| template<class VECLIKE > | |
| void | insertCol (const size_t nCol, VECLIKE &in, const size_t startingRow=0) |
| CSubmatrixView (MATRIXTYPE &m, size_t r1, size_t c1) | |
| value_type & | get_unsafe (size_t r, size_t c) |
| value_type | get_unsafe (size_t r, size_t c) const |
| void | set_unsafe (size_t r, size_t c, value_type v) |
| value_type & | operator() (const size_t r, const size_t c) |
| value_type | operator() (const size_t r, const size_t c) const |
| template<typename OTHERMATRIX > | |
| mrpt_autotype & | operator= (const OTHERMATRIX &m) |
| static size_t | getRowCount () |
| static size_t | getColCount () |
| static CMatrixTemplateSize | size () |
| static void | setSize (size_t r, size_t c) |
| static void | resize (size_t rtc) |
A wrapper around an existing matrix (of any kind) that allows operating on a subrange of the elements.
Example of usage:
CMatrixDouble C(10,10); CSubmatrixView<CMatrixDouble,3,2> Csub(C,5,6); // Csub is C([5,6,7],[6,7])
Definition at line 176 of file CMatrixViews.h.
| typedef CSubmatrixView<MATRIXTYPE,NR,NC> mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::mrpt_autotype |
Definition at line 182 of file CMatrixViews.h.
| typedef void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::mrpt_matrix_tag |
Definition at line 185 of file CMatrixViews.h.
| enum mrpt::math::CSubmatrixView::dummy_enum |
Definition at line 185 of file CMatrixViews.h.
| mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::CSubmatrixView | ( | MATRIXTYPE & | m, | |
| size_t | r1, | |||
| size_t | c1 | |||
| ) | [inline] |
Definition at line 189 of file CMatrixViews.h.
| value_type& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::_A | ( | const size_t | n | ) | [inline] |
Access the n'th element viewing the matrix as an array, with n=row*COLS+col
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::_A | ( | const size_t | n | ) | const [inline] |
Access the n'th element viewing the matrix as an array, with n=row*COLS+col
Definition at line 187 of file CMatrixViews.h.
| value_type& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::_E | ( | const size_t | row, | |
| const size_t | col | |||
| ) | [inline] |
Alternative access to element (i,j) with first index being (1,1) instead of (0,0)
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::_E | ( | const size_t | row, | |
| const size_t | col | |||
| ) | const [inline] |
Alternative access to element (i,j) with first index being (1,1) instead of (0,0)
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::Abs | ( | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::add_AAt | ( | const OTHERMATRIX & | m | ) | [inline] |
this += A + AT
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::add_Ac | ( | const OTHERMATRIX & | m, | |
| const value_type | c | |||
| ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::add_At | ( | const OTHERMATRIX & | m | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::adjustRange | ( | const value_type | min_val, | |
| const value_type | max_val | |||
| ) | [inline] |
| max_val | Normalize all the elements such as they are in the given range |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::applyToAllElements | ( | value_type(*)(value_type) | function | ) | [inline] |
Applies a generic operation "T func(T val)" to all the elements.
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::assignMatrix | ( | const OTHERMATRIX & | m | ) | [inline] |
Assignment of a matrix from any other kind of matrix
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::assignMatrixTransposed | ( | const OTHERMATRIX & | m | ) | [inline] |
Assignment of a matrix to another one (of any type!), transposed.
Definition at line 187 of file CMatrixViews.h.
| bool mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::chol | ( | MATRIXOUT & | out | ) | const [inline] |
Cholesky factorization: in = out' * out
Definition at line 187 of file CMatrixViews.h.
| size_t mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::countCommonElements | ( | const CONTAINER2 & | b | ) | const [inline] |
Definition at line 187 of file CMatrixViews.h.
| size_t mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::countNonZero | ( | ) | const [inline] |
Count how many elements in a container are non-zero.
Definition at line 187 of file CMatrixViews.h.
| CONTAINEROUT mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::cumsum | ( | ) | const [inline] |
Cumsum of all the elements, returning a container of the given type, for example: CMatrixDouble m = mat.cumsum<CMatrixDouble>();
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::cumsum | ( | CONTAINEROUT & | out | ) | const [inline] |
Cumsum of all the elements, saving in an output container
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::det | ( | ) | const [inline] |
< Returns the determinant of the matrix
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::eigenValues | ( | VECTOR1 & | eVals | ) | const [inline] |
Return the eigenvalues of the matrix in an ordered vector.
Definition at line 187 of file CMatrixViews.h.
| MATRIX1 ::template mrpt_matrix_tag_templ<typename MATRIX2 ::mrpt_matrix_tag>::void_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::eigenVectors | ( | MATRIX1 & | eVecs, | |
| MATRIX2 & | eVals | |||
| ) | const [inline] |
Eigenvalues and eigenvector of symmetric matrix: M = eVecs * eVals * eVecsT, with eigenvectors in columns in eVecs, eigenvalues in ascending order in diagonal of eVals
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::eigenVectorsVec | ( | MATRIX1 & | eVecs, | |
| VECTOR1 & | eVals | |||
| ) | const [inline] |
Like eigenVectors, but eigenvalues are returned in a vector instead of a matrix's diagonal.
Definition at line 187 of file CMatrixViews.h.
| bool mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::empty | ( | ) | const [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::Exp | ( | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::extractCol | ( | const size_t | nCol, | |
| VECLIKE & | out, | |||
| const size_t | startingRow = 0 | |||
| ) | const [inline] |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::extractMatrix | ( | const size_t | first_row, | |
| const size_t | first_col, | |||
| const size_t | nRows, | |||
| const size_t | nCols, | |||
| MATOUT & | outMat | |||
| ) | const [inline] |
Extract a sub matrix of the given size from this matrix.
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::extractMatrix | ( | const size_t | first_row, | |
| const size_t | first_col, | |||
| MATOUT & | outMat | |||
| ) | const [inline] |
Extract a sub matrix from this matrix (the size of the output matrix upon call determines the size of the submatrix to extract).
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::extractRow | ( | const size_t | nRow, | |
| VECLIKE & | out, | |||
| const size_t | startingCol = 0 | |||
| ) | const [inline] |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::fastLeftDivideSquare | ( | MAT2 & | A | ) | [inline] |
Matrix left divide: this = A-1 · this (A must be a square matrix, and will be modified on return).
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::fastRightDivideSquare | ( | MAT2 & | B | ) | [inline] |
Matrix right divide: this = this · B-1 (B must be a square matrix, and will be modified on return).
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::fill | ( | const value_type & | val | ) | [inline] |
Fill all the elements with a given value
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe | ( | size_t | r, | |
| size_t | c | |||
| ) | const [inline] |
Definition at line 199 of file CMatrixViews.h.
References mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol, and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow.
| value_type& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe | ( | size_t | r, | |
| size_t | c | |||
| ) | [inline] |
Definition at line 196 of file CMatrixViews.h.
References mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol, and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow.
| static size_t mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::getColCount | ( | ) | [inline, static] |
Definition at line 193 of file CMatrixViews.h.
| static size_t mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::getRowCount | ( | ) | [inline, static] |
Definition at line 190 of file CMatrixViews.h.
| std::vector<double> mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::histogram | ( | double | limit_min, | |
| double | limit_max, | |||
| size_t | number_bins, | |||
| bool | do_normalization = false | |||
| ) | const [inline] |
Definition at line 187 of file CMatrixViews.h.
| std::string mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::inMatlabFormat | ( | const size_t | decimal_digits = 6 |
) | const [inline] |
Return a string representation of the matrix in the form: "[m11 m12 m13...;m21 m22 m23...]", compatible with MATLAB matrices.
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::insertCol | ( | const size_t | nCol, | |
| VECLIKE & | in, | |||
| const size_t | startingRow = 0 | |||
| ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::insertMatrix | ( | const size_t | nRow, | |
| const size_t | nCol, | |||
| const MATRIXLIKE & | in | |||
| ) | [inline] |
Inserts a matrix into this matrix, at the position (nRow,nCol). An exception is raised in the inserted matrix does not fit.
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::insertMatrixTranspose | ( | const size_t | nRow, | |
| const size_t | nCol, | |||
| const MATRIXLIKE & | in | |||
| ) | [inline] |
Inserts the transpose of a matrix into this matrix, at the position (nRow,nCol). An exception is raised in the inserted matrix does not fit.
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::insertRow | ( | const size_t | nRow, | |
| VECLIKE & | in, | |||
| const size_t | startingCol = 0 | |||
| ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::inv | ( | ) | const [inline] |
< mrpt_autotype out = inv(this)
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::inv | ( | MATRIXOUT & | out | ) | const [inline] |
< out = inv(this)
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::inv_fast | ( | MATRIXOUT & | out | ) | [inline] |
| out | out = inv(this), overwriting contents of this |
Definition at line 187 of file CMatrixViews.h.
| bool mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::isSingular | ( | const value_type | epsilon = 0 |
) | const [inline] |
Checks for the absolute value of the determinant of the matrix being equal or below a given threshold (by default, exactly zero).
Definition at line 187 of file CMatrixViews.h.
| bool mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::isSquare | ( | ) | const [inline] |
Definition at line 187 of file CMatrixViews.h.
| bool mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::IsSquare | ( | ) | const [inline] |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::leftDivideSquare | ( | const MAT2 & | A, | |
| MAT3 & | RES | |||
| ) | const [inline] |
Matrix left divide: RES = A-1 · this (A must be a square matrix).
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::Log | ( | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::maximum | ( | size_t * | maxIndex = NULL |
) | const [inline] |
Finds the maximum value (and the corresponding zero-based index).
Definition at line 187 of file CMatrixViews.h.
| double mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::mean | ( | ) | const [inline] |
Return the mean of the container (for matrices, as if it were a vector with all its elements).
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::meanAndStd | ( | double & | out_mean, | |
| double & | out_std, | |||
| bool | unbiased = true | |||
| ) | [inline] |
Return the mean and standard deviation of all the elements in the container.
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::minimum | ( | size_t * | minIndex = NULL |
) | const [inline] |
Finds the minimum value (and the corresponding zero-based index).
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::minimum_maximum | ( | value_type & | out_min, | |
| value_type & | out_max, | |||
| size_t * | minIndex = NULL, |
|||
| size_t * | maxIndex = NULL | |||
| ) | const [inline] |
Minimum and maximum of a vector at once
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply | ( | const MATRIX1 & | A, | |
| const MATRIX2 & | B | |||
| ) | [inline] |
| B | this = A * B |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_AAt | ( | const MAT_A & | A | ) | [inline] |
| A | this = A * AT |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_Ab | ( | const OTHERVECTOR1 & | vIn, | |
| OTHERVECTOR2 & | vOut, | |||
| bool | accumToOutput = false | |||
| ) | const [inline] |
Computes the vector vOut = this * vIn, where "vIn" is a column vector of the appropriate length.
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_AB | ( | const MATRIX1 & | A, | |
| const MATRIX2 & | B | |||
| ) | [inline] |
| B | this = A * B |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_ABC | ( | const MAT_A & | A, | |
| const MAT_B & | B, | |||
| const MAT_C & | C | |||
| ) | [inline] |
| C | this = A*B*C |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_ABCt | ( | const MAT_A & | A, | |
| const MAT_B & | B, | |||
| const MAT_C & | C | |||
| ) | [inline] |
| C | this = A*B*(CT) |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_ABt | ( | const MAT_A & | A, | |
| const MAT_B & | B | |||
| ) | [inline] |
| B | this = A * BT |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_AtA | ( | const MAT_A & | A | ) | [inline] |
| A | this = AT * A |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_Atb | ( | const OTHERVECTOR1 & | vIn, | |
| OTHERVECTOR2 & | vOut, | |||
| bool | accumToOutput = false | |||
| ) | const [inline] |
Computes the vector vOut = thisT * vIn, where "vIn" is a column vector of the appropriate length.
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_HCHt | ( | const MAT_C & | C, | |
| MAT_R & | R, | |||
| bool | accumResultInOutput = false, |
|||
| bool | allow_submatrix_mult = false | |||
| ) | const [inline] |
< R = this * C * thisT
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_HCHt_scalar | ( | const MAT_C & | C | ) | const [inline] |
R = H * C * HT (with a vector H and a symmetric matrix C) In fact when H is a vector, multiply_HCHt_scalar and multiply_HtCH_scalar are exactly equivalent
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_HtCH | ( | const MAT_C & | C, | |
| MAT_R & | R, | |||
| bool | accumResultInOutput = false, |
|||
| bool | allow_submatrix_mult = false | |||
| ) | const [inline] |
R = HT * C * H (with a symmetric matrix C)
< R = thisT * C * this
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_HtCH_scalar | ( | const MAT_C & | C | ) | const [inline] |
R = HT * C * H (with a vector H and a symmetric matrix C) In fact when H is a vector, multiply_HCHt_scalar and multiply_HtCH_scalar are exactly equivalent
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_result_is_symmetric | ( | const MAT_A & | A, | |
| const MAT_B & | B | |||
| ) | [inline] |
| B | this = A * B (result is symmetric) |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::multiply_subMatrix | ( | const MAT_A & | A, | |
| MAT_OUT & | outResult, | |||
| const size_t | A_cols_offset, | |||
| const size_t | A_rows_offset, | |||
| const size_t | A_col_count | |||
| ) | const [inline] |
< outResult = this * A
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::norm | ( | ) | const [inline] |
Return the norm of the container (for matrices, as if it were a vector with all its elements).
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::norm_inf | ( | size_t * | maxIndex = NULL |
) | const [inline] |
Compute the norm-infinite of a vector ($f[ ||{v}||_ $f]), ie the maximum absolute value of the elements.
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::normalize | ( | const value_type | min_val = 0, |
|
| const value_type | max_val = 1 | |||
| ) | [inline] |
| max_val | Normalize all the elements such as they are in the given range |
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator() | ( | const size_t | r, | |
| const size_t | c | |||
| ) | const [inline] |
Definition at line 208 of file CMatrixViews.h.
References mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol, and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow.
| value_type& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator() | ( | const size_t | r, | |
| const size_t | c | |||
| ) | [inline] |
Definition at line 205 of file CMatrixViews.h.
References mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol, and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow.
| OTHERMATRIX ::template mrpt_matrix_tag_templ<void>::void_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator*= | ( | const OTHERMATRIX & | m | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator*= | ( | const value_type | n | ) | [inline] |
| n | Multiply by scalar |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator+ | ( | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator+= | ( | const value_type | n | ) | [inline] |
| n | Sum a scalar |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator- | ( | ) | const [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator-= | ( | const value_type | n | ) | [inline] |
| n | Substract a scalar |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator/= | ( | const value_type | n | ) | [inline] |
| n | Divide by scalar |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator= | ( | const OTHERMATRIX & | m | ) | [inline] |
Definition at line 211 of file CMatrixViews.h.
References ASSERT_, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol, and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator= | ( | const mrpt::poses::CPoint3D & | p | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator= | ( | const mrpt::poses::CPoint2D & | p | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator= | ( | const mrpt::poses::CPose3DQuat & | p | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator= | ( | const mrpt::poses::CPose3D & | p | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator= | ( | const mrpt::poses::CPose2D & | p | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator= | ( | const TPoint3D & | p | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator= | ( | const TPoint2D & | p | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator= | ( | const TPose3DQuat & | p | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator= | ( | const TPose3D & | p | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator= | ( | const TPose2D & | p | ) | [inline] |
Assignment of a matrix from any other kind of matrix
Definition at line 187 of file CMatrixViews.h.
| int mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::pivot | ( | const size_t | row | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| MAT_OUT mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::pseudoInverse | ( | ) | const [inline] |
< Pseudo inverse of this matrix M: return (MT * M)^-1 * MT. Invoke with template argument for desired return matrix type: m.pseudoInverse<CMatrixDouble>()
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::pseudoInverse | ( | MAT_OUT & | out | ) | const [inline] |
< Pseudo inverse of this matrix M: out = (MT * M)^-1 * MT
Definition at line 187 of file CMatrixViews.h.
| size_t mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::rank | ( | value_type | eps = 1e-7 |
) | const [inline] |
Definition at line 187 of file CMatrixViews.h.
| static void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::resize | ( | size_t | rtc | ) | [inline, static] |
Definition at line 225 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::rightDivideSquare | ( | const MAT2 & | B, | |
| MAT3 & | RES | |||
| ) | const [inline] |
Matrix right divide: RES = this · B-1 (B must be a square matrix).
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::saveToTextFile | ( | const std::string & | file, | |
| mrpt::math::TMatrixTextFileFormat | fileFormat = MATRIX_FORMAT_ENG, |
|||
| bool | appendMRPTHeader = false, |
|||
| const std::string & | userHeader = std::string("") | |||
| ) | const [inline] |
Save matrix to a text file, compatible with MATLAB text format.
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::set_unsafe | ( | size_t | r, | |
| size_t | c, | |||
| value_type | v | |||
| ) | [inline] |
Definition at line 202 of file CMatrixViews.h.
References mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol, and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::setIdentity | ( | size_t | N | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::setIdentity | ( | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| static void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::setSize | ( | size_t | r, | |
| size_t | c | |||
| ) | [inline, static] |
Definition at line 222 of file CMatrixViews.h.
| static CMatrixTemplateSize mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::size | ( | ) | [inline, static] |
Definition at line 217 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::Sqrt | ( | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::Square | ( | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::squareNorm | ( | ) | const [inline] |
Return the square norm of the container (for matrices, as if it were a vector with all its elements).
Definition at line 187 of file CMatrixViews.h.
| double mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::std | ( | bool | unbiased = true |
) | const [inline] |
Return the standard deviation of all the elements in the container.
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::substract_AAt | ( | const OTHERMATRIX & | m | ) | [inline] |
this -= A + AT
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::substract_Ac | ( | const OTHERMATRIX & | m, | |
| const value_type | c | |||
| ) | [inline] |
Substract c (scalar) times A to this matrix: this -= A * c
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::substract_An | ( | const OTHERMATRIX & | m, | |
| const size_t | n | |||
| ) | [inline] |
Substract n (integer) times A to this matrix: this -= A * n
Definition at line 187 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::substract_At | ( | const OTHERMATRIX & | m | ) | [inline] |
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::sumAll | ( | ) | const [inline] |
Sum all the elements, returning a value of the same type than the container
Definition at line 187 of file CMatrixViews.h.
| RET_TYPE mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::sumAllRetType | ( | ) | const [inline] |
Sum all the elements, returning a value of a custom type (this could be used to avoid overflow with containers of integers)
Definition at line 187 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::trace | ( | ) | const [inline] |
The trace of this square matrix
Definition at line 187 of file CMatrixViews.h.
MATRIXTYPE& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base [protected] |
Definition at line 178 of file CMatrixViews.h.
Referenced by mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe(), mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator()(), mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator=(), and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::set_unsafe().
size_t mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol [protected] |
Definition at line 180 of file CMatrixViews.h.
Referenced by mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe(), mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator()(), mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator=(), and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::set_unsafe().
size_t mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow [protected] |
Definition at line 179 of file CMatrixViews.h.
Referenced by mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe(), mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator()(), mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator=(), and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::set_unsafe().
| Page generated by Doxygen 1.6.2-20100208 for MRPT 0.9.0 SVN: at Sun Jun 6 22:55:28 UTC 2010 |