#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 CVectorColumnWrapper< VEC > | 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) |
Private Attributes | |
| VEC & | vec |
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) |
| CVectorColumnWrapper (VEC &v) | |
| size_t | getRowCount () const |
| value_type & | get_unsafe (size_t i, size_t j) |
| value_type | get_unsafe (size_t i, size_t j) const |
| void | set_unsafe (size_t i, size_t j, value_type v) |
| value_type & | operator() (size_t i, size_t j) |
| value_type | operator() (size_t i, size_t j) const |
| void | setSize (size_t r, size_t c) |
| void | resize (size_t rc) |
| static size_t | getColCount () |
Definition at line 1186 of file CMatrixViews.h.
| typedef CVectorColumnWrapper<VEC> mrpt::math::CVectorColumnWrapper< VEC >::mrpt_autotype |
Definition at line 1190 of file CMatrixViews.h.
| typedef void mrpt::math::CVectorColumnWrapper< VEC >::mrpt_matrix_tag |
Definition at line 1193 of file CMatrixViews.h.
| enum mrpt::math::CVectorColumnWrapper::dummy_enum |
Definition at line 1193 of file CMatrixViews.h.
| mrpt::math::CVectorColumnWrapper< VEC >::CVectorColumnWrapper | ( | VEC & | v | ) | [inline] |
Definition at line 1197 of file CMatrixViews.h.
| value_type& mrpt::math::CVectorColumnWrapper< VEC >::_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 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::_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 1195 of file CMatrixViews.h.
| value_type& mrpt::math::CVectorColumnWrapper< VEC >::_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 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::_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 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::Abs | ( | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::add_AAt | ( | const OTHERMATRIX & | m | ) | [inline] |
this += A + AT
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::add_Ac | ( | const OTHERMATRIX & | m, | |
| const value_type | c | |||
| ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::add_At | ( | const OTHERMATRIX & | m | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::applyToAllElements | ( | value_type(*)(value_type) | function | ) | [inline] |
Applies a generic operation "T func(T val)" to all the elements.
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::assignMatrix | ( | const OTHERMATRIX & | m | ) | [inline] |
Assignment of a matrix from any other kind of matrix
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::assignMatrixTransposed | ( | const OTHERMATRIX & | m | ) | [inline] |
Assignment of a matrix to another one (of any type!), transposed.
Definition at line 1195 of file CMatrixViews.h.
| bool mrpt::math::CVectorColumnWrapper< VEC >::chol | ( | MATRIXOUT & | out | ) | const [inline] |
Cholesky factorization: in = out' * out
Definition at line 1195 of file CMatrixViews.h.
| size_t mrpt::math::CVectorColumnWrapper< VEC >::countCommonElements | ( | const CONTAINER2 & | b | ) | const [inline] |
Definition at line 1195 of file CMatrixViews.h.
| size_t mrpt::math::CVectorColumnWrapper< VEC >::countNonZero | ( | ) | const [inline] |
Count how many elements in a container are non-zero.
Definition at line 1195 of file CMatrixViews.h.
| CONTAINEROUT mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::cumsum | ( | CONTAINEROUT & | out | ) | const [inline] |
Cumsum of all the elements, saving in an output container
Definition at line 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::det | ( | ) | const [inline] |
< Returns the determinant of the matrix
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::eigenValues | ( | VECTOR1 & | eVals | ) | const [inline] |
Return the eigenvalues of the matrix in an ordered vector.
Definition at line 1195 of file CMatrixViews.h.
| MATRIX1 ::template mrpt_matrix_tag_templ<typename MATRIX2 ::mrpt_matrix_tag>::void_type mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| bool mrpt::math::CVectorColumnWrapper< VEC >::empty | ( | ) | const [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::Exp | ( | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::extractCol | ( | const size_t | nCol, | |
| VECLIKE & | out, | |||
| const size_t | startingRow = 0 | |||
| ) | const [inline] |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::extractRow | ( | const size_t | nRow, | |
| VECLIKE & | out, | |||
| const size_t | startingCol = 0 | |||
| ) | const [inline] |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::fill | ( | const value_type & | val | ) | [inline] |
Fill all the elements with a given value
Definition at line 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::get_unsafe | ( | size_t | i, | |
| size_t | j | |||
| ) | const [inline] |
Definition at line 1207 of file CMatrixViews.h.
| value_type& mrpt::math::CVectorColumnWrapper< VEC >::get_unsafe | ( | size_t | i, | |
| size_t | j | |||
| ) | [inline] |
Definition at line 1204 of file CMatrixViews.h.
| static size_t mrpt::math::CVectorColumnWrapper< VEC >::getColCount | ( | ) | [inline, static] |
Definition at line 1201 of file CMatrixViews.h.
| size_t mrpt::math::CVectorColumnWrapper< VEC >::getRowCount | ( | ) | const [inline] |
Definition at line 1198 of file CMatrixViews.h.
| std::vector<double> mrpt::math::CVectorColumnWrapper< VEC >::histogram | ( | double | limit_min, | |
| double | limit_max, | |||
| size_t | number_bins, | |||
| bool | do_normalization = false | |||
| ) | const [inline] |
Definition at line 1195 of file CMatrixViews.h.
| std::string mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::insertCol | ( | const size_t | nCol, | |
| VECLIKE & | in, | |||
| const size_t | startingRow = 0 | |||
| ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::insertRow | ( | const size_t | nRow, | |
| VECLIKE & | in, | |||
| const size_t | startingCol = 0 | |||
| ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype mrpt::math::CVectorColumnWrapper< VEC >::inv | ( | ) | const [inline] |
< mrpt_autotype out = inv(this)
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::inv | ( | MATRIXOUT & | out | ) | const [inline] |
< out = inv(this)
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::inv_fast | ( | MATRIXOUT & | out | ) | [inline] |
| out | out = inv(this), overwriting contents of this |
Definition at line 1195 of file CMatrixViews.h.
| bool mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| bool mrpt::math::CVectorColumnWrapper< VEC >::isSquare | ( | ) | const [inline] |
Definition at line 1195 of file CMatrixViews.h.
| bool mrpt::math::CVectorColumnWrapper< VEC >::IsSquare | ( | ) | const [inline] |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::leftDivideSquare | ( | const MAT2 & | A, | |
| MAT3 & | RES | |||
| ) | const [inline] |
Matrix left divide: RES = A-1 · this (A must be a square matrix).
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::Log | ( | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::maximum | ( | size_t * | maxIndex = NULL |
) | const [inline] |
Finds the maximum value (and the corresponding zero-based index).
Definition at line 1195 of file CMatrixViews.h.
| double mrpt::math::CVectorColumnWrapper< VEC >::mean | ( | ) | const [inline] |
Return the mean of the container (for matrices, as if it were a vector with all its elements).
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::minimum | ( | size_t * | minIndex = NULL |
) | const [inline] |
Finds the minimum value (and the corresponding zero-based index).
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::multiply | ( | const MATRIX1 & | A, | |
| const MATRIX2 & | B | |||
| ) | [inline] |
| B | this = A * B |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::multiply_AAt | ( | const MAT_A & | A | ) | [inline] |
| A | this = A * AT |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::multiply_AB | ( | const MATRIX1 & | A, | |
| const MATRIX2 & | B | |||
| ) | [inline] |
| B | this = A * B |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::multiply_ABC | ( | const MAT_A & | A, | |
| const MAT_B & | B, | |||
| const MAT_C & | C | |||
| ) | [inline] |
| C | this = A*B*C |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::multiply_ABCt | ( | const MAT_A & | A, | |
| const MAT_B & | B, | |||
| const MAT_C & | C | |||
| ) | [inline] |
| C | this = A*B*(CT) |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::multiply_ABt | ( | const MAT_A & | A, | |
| const MAT_B & | B | |||
| ) | [inline] |
| B | this = A * BT |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::multiply_AtA | ( | const MAT_A & | A | ) | [inline] |
| A | this = AT * A |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::multiply_result_is_symmetric | ( | const MAT_A & | A, | |
| const MAT_B & | B | |||
| ) | [inline] |
| B | this = A * B (result is symmetric) |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::norm | ( | ) | const [inline] |
Return the norm of the container (for matrices, as if it were a vector with all its elements).
Definition at line 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::operator() | ( | size_t | i, | |
| size_t | j | |||
| ) | const [inline] |
Definition at line 1217 of file CMatrixViews.h.
References ASSERT_.
| value_type& mrpt::math::CVectorColumnWrapper< VEC >::operator() | ( | size_t | i, | |
| size_t | j | |||
| ) | [inline] |
Definition at line 1213 of file CMatrixViews.h.
References ASSERT_.
| OTHERMATRIX ::template mrpt_matrix_tag_templ<void>::void_type mrpt::math::CVectorColumnWrapper< VEC >::operator*= | ( | const OTHERMATRIX & | m | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator*= | ( | const value_type | n | ) | [inline] |
| n | Multiply by scalar |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype mrpt::math::CVectorColumnWrapper< VEC >::operator+ | ( | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator+= | ( | const value_type | n | ) | [inline] |
| n | Sum a scalar |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype mrpt::math::CVectorColumnWrapper< VEC >::operator- | ( | ) | const [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator-= | ( | const value_type | n | ) | [inline] |
| n | Substract a scalar |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator/= | ( | const value_type | n | ) | [inline] |
| n | Divide by scalar |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator= | ( | const mrpt::poses::CPoint3D & | p | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator= | ( | const mrpt::poses::CPoint2D & | p | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator= | ( | const mrpt::poses::CPose3DQuat & | p | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator= | ( | const mrpt::poses::CPose3D & | p | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator= | ( | const mrpt::poses::CPose2D & | p | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator= | ( | const TPoint3D & | p | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator= | ( | const TPoint2D & | p | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator= | ( | const TPose3DQuat & | p | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator= | ( | const TPose3D & | p | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::operator= | ( | const TPose2D & | p | ) | [inline] |
Assignment of a matrix from any other kind of matrix
Definition at line 1195 of file CMatrixViews.h.
| int mrpt::math::CVectorColumnWrapper< VEC >::pivot | ( | const size_t | row | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| MAT_OUT mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::pseudoInverse | ( | MAT_OUT & | out | ) | const [inline] |
< Pseudo inverse of this matrix M: out = (MT * M)^-1 * MT
Definition at line 1195 of file CMatrixViews.h.
| size_t mrpt::math::CVectorColumnWrapper< VEC >::rank | ( | value_type | eps = 1e-7 |
) | const [inline] |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::resize | ( | size_t | rc | ) | [inline] |
Definition at line 1225 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::rightDivideSquare | ( | const MAT2 & | B, | |
| MAT3 & | RES | |||
| ) | const [inline] |
Matrix right divide: RES = this · B-1 (B must be a square matrix).
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::set_unsafe | ( | size_t | i, | |
| size_t | j, | |||
| value_type | v | |||
| ) | [inline] |
Definition at line 1210 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::setIdentity | ( | size_t | N | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::setIdentity | ( | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| void mrpt::math::CVectorColumnWrapper< VEC >::setSize | ( | size_t | r, | |
| size_t | c | |||
| ) | [inline] |
Definition at line 1221 of file CMatrixViews.h.
References ASSERT_.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::Sqrt | ( | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::Square | ( | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| double mrpt::math::CVectorColumnWrapper< VEC >::std | ( | bool | unbiased = true |
) | const [inline] |
Return the standard deviation of all the elements in the container.
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::substract_AAt | ( | const OTHERMATRIX & | m | ) | [inline] |
this -= A + AT
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::substract_Ac | ( | const OTHERMATRIX & | m, | |
| const value_type | c | |||
| ) | [inline] |
Substract c (scalar) times A to this matrix: this -= A * c
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::substract_An | ( | const OTHERMATRIX & | m, | |
| const size_t | n | |||
| ) | [inline] |
Substract n (integer) times A to this matrix: this -= A * n
Definition at line 1195 of file CMatrixViews.h.
| mrpt_autotype& mrpt::math::CVectorColumnWrapper< VEC >::substract_At | ( | const OTHERMATRIX & | m | ) | [inline] |
Definition at line 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::sumAll | ( | ) | const [inline] |
Sum all the elements, returning a value of the same type than the container
Definition at line 1195 of file CMatrixViews.h.
| RET_TYPE mrpt::math::CVectorColumnWrapper< VEC >::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 1195 of file CMatrixViews.h.
| value_type mrpt::math::CVectorColumnWrapper< VEC >::trace | ( | ) | const [inline] |
The trace of this square matrix
Definition at line 1195 of file CMatrixViews.h.
VEC& mrpt::math::CVectorColumnWrapper< VEC >::vec [private] |
Definition at line 1188 of file CMatrixViews.h.
| Page generated by Doxygen 1.6.2-20100208 for MRPT 0.9.0 SVN: at Sun Jun 6 22:55:28 UTC 2010 |