Main MRPT website > C++ reference
MRPT logo

mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE > Class Template Reference

A wrapper around an existing matrix (of any kind) that allows operating on a subrange of the elements. More...

#include <mrpt/math/CMatrixViews.h>

Inheritance diagram for mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >:
Inheritance graph
[legend]
Collaboration diagram for mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >:
Collaboration graph
[legend]

List of all members.

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
CArbitrarySubmatrixView
< MATRIXTYPE > 
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)
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)
 CArbitrarySubmatrixView (MATRIXTYPE &m, const std::vector< size_t > &rs, const std::vector< size_t > &cs)
 CArbitrarySubmatrixView (MATRIXTYPE &m, const std::vector< size_t > &rows_and_cols)
 CArbitrarySubmatrixView (MATRIXTYPE &m, size_t firstRow, size_t numRows, size_t firstCol, size_t numCols)
size_t getRowCount () const
size_t getColCount () const
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() (size_t r, size_t c)
value_type operator() (size_t r, size_t c) const
template<typename OTHERMATRIX >
mrpt_autotype & operator= (const OTHERMATRIX &m)
CMatrixTemplateSize size () const
void setSize (size_t r, size_t c)
void resize (size_t rtc)
void getRealRowIndices (std::vector< size_t > &vec) const
void getRealColumnIndices (std::vector< size_t > &vec) const
void deleteRow (size_t r)
void deleteColumn (size_t c)
size_t getProxyRow (size_t r) const
size_t getProxyCol (size_t c) const
value_type & getWithRowProxied (size_t proxyRow, size_t c)
value_type getWithRowProxied (size_t proxyRow, size_t c) const
value_type & getWithColProxied (size_t r, size_t proxyCol)
value_type getWithColProxied (size_t r, size_t proxyCol) const

Protected Attributes

MATRIXTYPE & base
std::vector< size_t > rows
std::vector< size_t > cols

Detailed Description

template<typename MATRIXTYPE>
class mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >

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);
  vector_size_t  idxs = make_vector<4,size_t>(0,1,6,7);
  CArbitrarySubmatrixView<CMatrixDouble>  Csub(C,idxs);  // Csub is C(idxs,idxs)
See also:
CSubmatrixView

Definition at line 286 of file CMatrixViews.h.


Member Typedef Documentation

template<typename MATRIXTYPE>
typedef CArbitrarySubmatrixView<MATRIXTYPE> mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::mrpt_autotype

Definition at line 292 of file CMatrixViews.h.

template<typename MATRIXTYPE>
typedef void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::mrpt_matrix_tag

Definition at line 295 of file CMatrixViews.h.


Member Enumeration Documentation

template<typename MATRIXTYPE>
enum mrpt::math::CArbitrarySubmatrixView::dummy_enum
Enumerator:
mrpt_matrix_type_ncols 
mrpt_matrix_type_nrows 

Definition at line 295 of file CMatrixViews.h.


Constructor & Destructor Documentation

template<typename MATRIXTYPE>
mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::CArbitrarySubmatrixView ( MATRIXTYPE &  m,
const std::vector< size_t > &  rs,
const std::vector< size_t > &  cs 
) [inline]

Definition at line 299 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::CArbitrarySubmatrixView ( MATRIXTYPE &  m,
const std::vector< size_t > &  rows_and_cols 
) [inline]

Definition at line 300 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::CArbitrarySubmatrixView ( MATRIXTYPE &  m,
size_t  firstRow,
size_t  numRows,
size_t  firstCol,
size_t  numCols 
) [inline]

Member Function Documentation

template<typename MATRIXTYPE>
value_type& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::_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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::_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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
value_type& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::_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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::_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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::Abs (  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename OTHERMATRIX >
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::add_AAt ( const OTHERMATRIX &  m  )  [inline]

this += A + AT

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename OTHERMATRIX >
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::add_Ac ( const OTHERMATRIX &  m,
const value_type  c 
) [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename OTHERMATRIX >
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::add_At ( const OTHERMATRIX &  m  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::adjustRange ( const value_type  min_val,
const value_type  max_val 
) [inline]
Parameters:
max_val Normalize all the elements such as they are in the given range

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class F >
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::applyToAllElements ( value_type(*)(value_type)  function  )  [inline]

Applies a generic operation "T func(T val)" to all the elements.

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename OTHERMATRIX >
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::assignMatrix ( const OTHERMATRIX &  m  )  [inline]

Assignment of a matrix from any other kind of matrix

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename OTHERMATRIX >
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::assignMatrixTransposed ( const OTHERMATRIX &  m  )  [inline]

Assignment of a matrix to another one (of any type!), transposed.

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MATRIXOUT >
bool mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::chol ( MATRIXOUT &  out  )  const [inline]

Cholesky factorization: in = out' * out

Returns:
True on success, false on singular matrix
See also:
mrpt::math::chol

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class CONTAINER2 >
size_t mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::countCommonElements ( const CONTAINER2 &  b  )  const [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
size_t mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::countNonZero (  )  const [inline]

Count how many elements in a container are non-zero.

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class CONTAINEROUT >
CONTAINEROUT mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class CONTAINEROUT >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::cumsum ( CONTAINEROUT &  out  )  const [inline]

Cumsum of all the elements, saving in an output container

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::deleteColumn ( size_t  c  )  [inline]
template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::deleteRow ( size_t  r  )  [inline]
template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::det (  )  const [inline]

< Returns the determinant of the matrix

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class VECTOR1 >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::eigenValues ( VECTOR1 &  eVals  )  const [inline]

Return the eigenvalues of the matrix in an ordered vector.

See also:
eigenVectors

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MATRIX1 , class MATRIX2 >
MATRIX1 ::template mrpt_matrix_tag_templ<typename MATRIX2 ::mrpt_matrix_tag>::void_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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

See also:
eigenVectorsVec, eigenValues

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MATRIX1 , class VECTOR1 >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::eigenVectorsVec ( MATRIX1 &  eVecs,
VECTOR1 &  eVals 
) const [inline]

Like eigenVectors, but eigenvalues are returned in a vector instead of a matrix's diagonal.

See also:
eigenVectors,eigenValues

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
bool mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::empty (  )  const [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::Exp (  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class VECLIKE >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::extractCol ( const size_t  nCol,
VECLIKE &  out,
const size_t  startingRow = 0 
) const [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MATOUT >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MATOUT >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class VECLIKE >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::extractRow ( const size_t  nRow,
VECLIKE &  out,
const size_t  startingCol = 0 
) const [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename MAT2 >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::fastLeftDivideSquare ( MAT2 &  A  )  [inline]

Matrix left divide: this = A-1 &#183; this (A must be a square matrix, and will be modified on return).

See also:
leftDivideSquare,fastRightDivideSquare

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename MAT2 >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::fastRightDivideSquare ( MAT2 &  B  )  [inline]

Matrix right divide: this = this &#183; B-1 (B must be a square matrix, and will be modified on return).

See also:
leftDivideSquare,fastRightDivideSquare

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::fill ( const value_type &  val  )  [inline]

Fill all the elements with a given value

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::get_unsafe ( size_t  r,
size_t  c 
) const [inline]
template<typename MATRIXTYPE>
value_type& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::get_unsafe ( size_t  r,
size_t  c 
) [inline]
template<typename MATRIXTYPE>
size_t mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::getColCount (  )  const [inline]
template<typename MATRIXTYPE>
size_t mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::getProxyCol ( size_t  c  )  const [inline]
template<typename MATRIXTYPE>
size_t mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::getProxyRow ( size_t  r  )  const [inline]
template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::getRealColumnIndices ( std::vector< size_t > &  vec  )  const [inline]
template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::getRealRowIndices ( std::vector< size_t > &  vec  )  const [inline]
template<typename MATRIXTYPE>
size_t mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::getRowCount (  )  const [inline]
template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::getWithColProxied ( size_t  r,
size_t  proxyCol 
) const [inline]
template<typename MATRIXTYPE>
value_type& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::getWithColProxied ( size_t  r,
size_t  proxyCol 
) [inline]
template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::getWithRowProxied ( size_t  proxyRow,
size_t  c 
) const [inline]
template<typename MATRIXTYPE>
value_type& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::getWithRowProxied ( size_t  proxyRow,
size_t  c 
) [inline]
template<typename MATRIXTYPE>
std::vector<double> mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::histogram ( double  limit_min,
double  limit_max,
size_t  number_bins,
bool  do_normalization = false 
) const [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
std::string mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class VECLIKE >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::insertCol ( const size_t  nCol,
VECLIKE &  in,
const size_t  startingRow = 0 
) [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MATRIXLIKE >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MATRIXLIKE >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class VECLIKE >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::insertRow ( const size_t  nRow,
VECLIKE &  in,
const size_t  startingCol = 0 
) [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::inv (  )  const [inline]

< mrpt_autotype out = inv(this)

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MATRIXOUT >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::inv ( MATRIXOUT &  out  )  const [inline]

< out = inv(this)

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MATRIXOUT >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::inv_fast ( MATRIXOUT &  out  )  [inline]
Parameters:
out out = inv(this), overwriting contents of this

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
bool mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
bool mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::isSquare (  )  const [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
bool mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::IsSquare (  )  const [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MAT2 , class MAT3 >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::leftDivideSquare ( const MAT2 &  A,
MAT3 &  RES 
) const [inline]

Matrix left divide: RES = A-1 &#183; this (A must be a square matrix).

See also:
rightDivideSquare,fastLeftDivideSquare

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::Log (  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::maximum ( size_t *  maxIndex = NULL  )  const [inline]

Finds the maximum value (and the corresponding zero-based index).

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
double mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::mean (  )  const [inline]

Return the mean of the container (for matrices, as if it were a vector with all its elements).

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::minimum ( size_t *  minIndex = NULL  )  const [inline]

Finds the minimum value (and the corresponding zero-based index).

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MATRIX1 , class MATRIX2 >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::multiply ( const MATRIX1 &  A,
const MATRIX2 &  B 
) [inline]
Parameters:
B this = A * B

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MAT_A >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::multiply_AAt ( const MAT_A &  A  )  [inline]
Parameters:
A this = A * AT

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename OTHERVECTOR1 , typename OTHERVECTOR2 >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MATRIX1 , class MATRIX2 >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::multiply_AB ( const MATRIX1 &  A,
const MATRIX2 &  B 
) [inline]
Parameters:
B this = A * B

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MAT_A , class MAT_B , class MAT_C >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::multiply_ABC ( const MAT_A &  A,
const MAT_B &  B,
const MAT_C &  C 
) [inline]
Parameters:
C this = A*B*C

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MAT_A , class MAT_B , class MAT_C >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::multiply_ABCt ( const MAT_A &  A,
const MAT_B &  B,
const MAT_C &  C 
) [inline]
Parameters:
C this = A*B*(CT)

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MAT_A , class MAT_B >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::multiply_ABt ( const MAT_A &  A,
const MAT_B &  B 
) [inline]
Parameters:
B this = A * BT

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MAT_A >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::multiply_AtA ( const MAT_A &  A  )  [inline]
Parameters:
A this = AT * A

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename OTHERVECTOR1 , typename OTHERVECTOR2 >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename MAT_C , typename MAT_R >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::multiply_HCHt ( const MAT_C &  C,
MAT_R &  R,
bool  accumResultInOutput = false,
bool  allow_submatrix_mult = false 
) const [inline]

< R = this * C * thisT

See also:
detail::multiply_HCHt

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename MAT_C >
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename MAT_C , typename MAT_R >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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

See also:
detail::multiply_HtCH

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename MAT_C >
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MAT_A , class MAT_B >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::multiply_result_is_symmetric ( const MAT_A &  A,
const MAT_B &  B 
) [inline]
Parameters:
B this = A * B (result is symmetric)

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MAT_A , class MAT_OUT >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::norm (  )  const [inline]

Return the norm of the container (for matrices, as if it were a vector with all its elements).

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::normalize ( const value_type  min_val = 0,
const value_type  max_val = 1 
) [inline]
Parameters:
max_val Normalize all the elements such as they are in the given range

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator() ( size_t  r,
size_t  c 
) const [inline]
template<typename MATRIXTYPE>
value_type& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator() ( size_t  r,
size_t  c 
) [inline]
template<typename MATRIXTYPE>
template<typename OTHERMATRIX >
OTHERMATRIX ::template mrpt_matrix_tag_templ<void>::void_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator*= ( const OTHERMATRIX &  m  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator*= ( const value_type  n  )  [inline]
Parameters:
n Multiply by scalar

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator+ (  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator+= ( const value_type  n  )  [inline]
Parameters:
n Sum a scalar

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator- (  )  const [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator-= ( const value_type  n  )  [inline]
Parameters:
n Substract a scalar

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator/= ( const value_type  n  )  [inline]
Parameters:
n Divide by scalar

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename OTHERMATRIX >
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator= ( const OTHERMATRIX &  m  )  [inline]
template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator= ( const mrpt::poses::CPoint3D &  p  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator= ( const mrpt::poses::CPoint2D &  p  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator= ( const mrpt::poses::CPose3DQuat &  p  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator= ( const mrpt::poses::CPose3D &  p  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator= ( const mrpt::poses::CPose2D &  p  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator= ( const TPoint3D &  p  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator= ( const TPoint2D &  p  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator= ( const TPose3DQuat &  p  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator= ( const TPose3D &  p  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::operator= ( const TPose2D &  p  )  [inline]

Assignment of a matrix from any other kind of matrix

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
int mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::pivot ( const size_t  row  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MAT_OUT >
MAT_OUT mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<class MAT_OUT >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::pseudoInverse ( MAT_OUT &  out  )  const [inline]

< Pseudo inverse of this matrix M: out = (MT * M)^-1 * MT

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
size_t mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::rank ( value_type  eps = 1e-7  )  const [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::resize ( size_t  rtc  )  [inline]
template<typename MATRIXTYPE>
template<class MAT2 , class MAT3 >
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::rightDivideSquare ( const MAT2 &  B,
MAT3 &  RES 
) const [inline]

Matrix right divide: RES = this &#183; B-1 (B must be a square matrix).

See also:
leftDivideSquare,fastRightDivideSquare

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::set_unsafe ( size_t  r,
size_t  c,
value_type  v 
) [inline]
template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::setIdentity ( size_t  N  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::setIdentity (  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
void mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::setSize ( size_t  r,
size_t  c 
) [inline]
template<typename MATRIXTYPE>
CMatrixTemplateSize mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::size (  )  const [inline]
template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::Sqrt (  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::Square (  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
double mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::std ( bool  unbiased = true  )  const [inline]

Return the standard deviation of all the elements in the container.

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename OTHERMATRIX >
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::substract_AAt ( const OTHERMATRIX &  m  )  [inline]

this -= A + AT

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename OTHERMATRIX >
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::substract_Ac ( const OTHERMATRIX &  m,
const value_type  c 
) [inline]

Substract c (scalar) times A to this matrix: this -= A * c

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename OTHERMATRIX >
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::substract_An ( const OTHERMATRIX &  m,
const size_t  n 
) [inline]

Substract n (integer) times A to this matrix: this -= A * n

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename OTHERMATRIX >
mrpt_autotype& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::substract_At ( const OTHERMATRIX &  m  )  [inline]

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::sumAll (  )  const [inline]

Sum all the elements, returning a value of the same type than the container

Definition at line 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
template<typename RET_TYPE >
RET_TYPE mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::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 297 of file CMatrixViews.h.

template<typename MATRIXTYPE>
value_type mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::trace (  )  const [inline]

The trace of this square matrix

Definition at line 297 of file CMatrixViews.h.


Member Data Documentation

template<typename MATRIXTYPE>
MATRIXTYPE& mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::base [protected]
template<typename MATRIXTYPE>
std::vector<size_t> mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::cols [protected]
template<typename MATRIXTYPE>
std::vector<size_t> mrpt::math::CArbitrarySubmatrixView< MATRIXTYPE >::rows [protected]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.6.2-20100208 for MRPT 0.9.0 SVN: at Sun Jun 6 22:55:28 UTC 2010