CluE
1.0
|
Weighted matrix of arbitrary dimension. More...
#include <matrix.h>
Public Member Functions | |
Matrix (size_t r=0, size_t c=0) | |
Constructs a matrix. More... | |
Matrix (size_t r, size_t c, std::vector< double > const &e) | |
Constructs a matrix. More... | |
Matrix (Point const &p, bool isRow=false) | |
Constructs a matrix. More... | |
virtual | ~Matrix () |
Matrix | transpose () const |
Matrix | cholesky () const |
bool | isSPD () const |
double | spdDeterminant () const |
Matrix | spdInverse () const |
Matrix | gramSchmidt () const |
Matrix & | operator+= (Matrix const &m) |
Matrix & | operator-= (Matrix const &m) |
Matrix & | operator*= (Matrix const &m) |
Matrix | operator+ (Matrix const &m) const |
Matrix | operator- (Matrix const &m) const |
Matrix | operator* (Matrix const &m) const |
double & | operator() (size_t row, size_t col) |
double | operator() (size_t row, size_t col) const |
size_t | numRows () const |
size_t | numColumns () const |
Static Public Member Functions | |
static Matrix | identity (double dimension) |
static Matrix | ltInverse (Matrix const <) |
Private Attributes | |
size_t | rows |
size_t | cols |
std::vector< double > | entries |
|
inline |
Matrix::Matrix | ( | size_t | r, |
size_t | c, | ||
std::vector< double > const & | e | ||
) |
Constructs a matrix.
Definition at line 14 of file matrix.cpp.
Matrix::Matrix | ( | Point const & | p, |
bool | isRow = false |
||
) |
Constructs a matrix.
Definition at line 22 of file matrix.cpp.
Matrix Matrix::transpose | ( | ) | const |
Definition at line 40 of file matrix.cpp.
Matrix Matrix::cholesky | ( | ) | const |
Definition at line 49 of file matrix.cpp.
bool Matrix::isSPD | ( | ) | const |
Definition at line 82 of file matrix.cpp.
double Matrix::spdDeterminant | ( | ) | const |
Definition at line 112 of file matrix.cpp.
Matrix Matrix::spdInverse | ( | ) | const |
Definition at line 124 of file matrix.cpp.
Matrix Matrix::gramSchmidt | ( | ) | const |
Definition at line 146 of file matrix.cpp.
InvalidArgumentException | [0] Incompatible dimensions! |
Definition at line 171 of file matrix.cpp.
InvalidArgumentException | [0] Incompatible dimensions! |
Definition at line 186 of file matrix.cpp.
InvalidArgumentException | [0] Incompatible dimensions! |
Definition at line 211 of file matrix.cpp.
InvalidArgumentException | [0] Incompatible dimensions! |
Definition at line 201 of file matrix.cpp.
InvalidArgumentException | [0] Incompatible dimensions! |
Definition at line 206 of file matrix.cpp.
InvalidArgumentException | [0] Incompatible dimensions! |
Definition at line 217 of file matrix.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 303 of file matrix.cpp.
Definition at line 312 of file matrix.cpp.