#include <matrix.h>
|
| | 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 (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) |
| |
| Matrix::Matrix |
( |
const int32_t |
m, |
|
|
const int32_t |
n |
|
) |
| |
| Matrix::Matrix |
( |
const int32_t |
m, |
|
|
const int32_t |
n, |
|
|
const FLOAT * |
val_ |
|
) |
| |
| Matrix::Matrix |
( |
const Matrix & |
M | ) |
|
| Matrix Matrix::extractCols |
( |
std::vector< int > |
idx | ) |
|
| Matrix Matrix::eye |
( |
const int32_t |
m | ) |
|
|
static |
| void Matrix::getData |
( |
FLOAT * |
val_, |
|
|
int32_t |
i1 = 0, |
|
|
int32_t |
j1 = 0, |
|
|
int32_t |
i2 = -1, |
|
|
int32_t |
j2 = -1 |
|
) |
| |
| Matrix Matrix::getMat |
( |
int32_t |
i1, |
|
|
int32_t |
j1, |
|
|
int32_t |
i2 = -1, |
|
|
int32_t |
j2 = -1 |
|
) |
| |
| bool Matrix::lu |
( |
int32_t * |
idx, |
|
|
FLOAT & |
d, |
|
|
FLOAT |
eps = 1e-20 |
|
) |
| |
| Matrix Matrix::reshape |
( |
const Matrix & |
M, |
|
|
int32_t |
m, |
|
|
int32_t |
n |
|
) |
| |
|
static |
| void Matrix::setDiag |
( |
FLOAT |
s, |
|
|
int32_t |
i1 = 0, |
|
|
int32_t |
i2 = -1 |
|
) |
| |
| void Matrix::setMat |
( |
const Matrix & |
M, |
|
|
const int32_t |
i, |
|
|
const int32_t |
j |
|
) |
| |
| void Matrix::setVal |
( |
FLOAT |
s, |
|
|
int32_t |
i1 = 0, |
|
|
int32_t |
j1 = 0, |
|
|
int32_t |
i2 = -1, |
|
|
int32_t |
j2 = -1 |
|
) |
| |
| bool Matrix::solve |
( |
const Matrix & |
M, |
|
|
FLOAT |
eps = 1e-20 |
|
) |
| |
| std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const Matrix & |
M |
|
) |
| |
|
friend |
The documentation for this class was generated from the following files:
- /build/rock-master-18.09-perception-libelas-0.20130628/src/matrix.h
- /build/rock-master-18.09-perception-libelas-0.20130628/src/matrix.cpp