![]() |
PandaRoot
|
#include <matrix.h>
Public Member Functions | |
| Matrix () | |
| Matrix (const int32_t m, const int32_t n) | |
| Matrix (const int32_t m, const int32_t n, const FLOAT *val_) | |
| Matrix (const Matrix &M) | |
| ~Matrix () | |
| Matrix & | operator= (const Matrix &M) |
| void | getData (FLOAT *val_, int32_t i1=0, int32_t j1=0, int32_t i2=-1, int32_t j2=-1) |
| Matrix | getMat (int32_t i1, int32_t j1, int32_t i2=-1, int32_t j2=-1) |
| void | setMat (const Matrix &M, const int32_t i, const int32_t j) |
| void | setVal (const int32_t m, const int32_t n, const FLOAT *val_) |
| void | setVal (FLOAT s, int32_t i1=0, int32_t j1=0, int32_t i2=-1, int32_t j2=-1) |
| void | setDiag (FLOAT s, int32_t i1=0, int32_t i2=-1) |
| void | zero () |
| Matrix | extractCols (std::vector< int > idx) |
| void | eye () |
| Matrix | operator+ (const Matrix &M) |
| Matrix | operator- (const Matrix &M) |
| Matrix | operator* (const Matrix &M) |
| Matrix | operator* (const FLOAT &s) |
| Matrix | operator/ (const Matrix &M) |
| Matrix | operator/ (const FLOAT &s) |
| Matrix | operator- () |
| Matrix | operator~ () |
| FLOAT | l2norm () |
| FLOAT | mean () |
| bool | inv () |
| FLOAT | det () |
| bool | solve (const Matrix &M, FLOAT eps=1e-20) |
| bool | lu (int32_t *idx, FLOAT &d, FLOAT eps=1e-20) |
| void | svd (Matrix &U, Matrix &W, Matrix &V) |
Static Public Member Functions | |
| static Matrix | eye (const int32_t m) |
| static Matrix | ones (const int32_t m, const int32_t n) |
| static Matrix | diag (const Matrix &M) |
| static Matrix | reshape (const Matrix &M, int32_t m, int32_t n) |
| static Matrix | rotMatX (const FLOAT &angle) |
| static Matrix | rotMatY (const FLOAT &angle) |
| static Matrix | rotMatZ (const FLOAT &angle) |
| static Matrix | homogenize (const Matrix &M) |
| static Matrix | dehomogenize (const Matrix &M) |
| static Matrix | homogenizeTranslation (const Matrix &M) |
| static Matrix | homogenizeRotTrans (const Matrix &R, const Matrix &t) |
| static Matrix | cross (const Matrix &a, const Matrix &b) |
| static Matrix | inv (const Matrix &M) |
Public Attributes | |
| FLOAT ** | val |
| int32_t | m |
| int32_t | n |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const Matrix &M) |
| Matrix::Matrix | ( | ) |
| Matrix::Matrix | ( | const Matrix & | M | ) |
| Matrix::~Matrix | ( | ) |
| FLOAT Matrix::det | ( | ) |
| Matrix Matrix::extractCols | ( | std::vector< int > | idx | ) |
| void Matrix::eye | ( | ) |
| void Matrix::getData | ( | FLOAT * | val_, |
| int32_t | i1 = 0, |
||
| int32_t | j1 = 0, |
||
| int32_t | i2 = -1, |
||
| int32_t | j2 = -1 |
||
| ) |
| bool Matrix::inv | ( | ) |
| FLOAT Matrix::l2norm | ( | ) |
| FLOAT Matrix::mean | ( | ) |
| Matrix Matrix::operator- | ( | ) |
| Matrix Matrix::operator~ | ( | ) |
| void Matrix::zero | ( | ) |
|
friend |