Matrix class Matrix class.
More...
#include <matrix.h>
|
| Matrix () |
|
| Matrix (const char *fname) |
|
| Matrix (const std::string &fname) |
|
| Matrix (const Dimension M, const Dimension N) |
|
| Matrix (const Matrix &A, const DeepCopy) |
|
| Matrix (const SymMatrix &A) |
|
| Matrix (const SparseMatrix &A) |
|
| Matrix (const Vector &v, const Dimension M, const Dimension N) |
|
void | alloc_data () |
|
void | reference_data (const double *vals) |
|
bool | empty () const |
| Test if Matrix is empty.
|
|
size_t | size () const |
| Get Matrix size.
|
|
double * | data () const |
| Get Matrix data.
|
|
double | operator() (const Index i, const Index j) const |
| Get Matrix value.
|
|
double & | operator() (const Index i, const Index j) |
| Get Matrix value.
|
|
Matrix | submat (const Index istart, const Index isize, const Index jstart, const Index jsize) const |
|
void | insertmat (const Index istart, const Index jstart, const Matrix &B) |
|
Vector | getcol (const Index j) const |
|
void | setcol (const Index j, const Vector &v) |
|
Vector | getlin (const Index i) const |
|
void | setlin (const Index i, const Vector &v) |
|
const Matrix & | set (const double d) |
|
Matrix | operator* (const Matrix &B) const |
|
Matrix | operator* (const SymMatrix &B) const |
|
Matrix | operator* (const SparseMatrix &B) const |
|
Matrix | operator+ (const Matrix &B) const |
|
Matrix | operator- (const Matrix &B) const |
|
Matrix | operator* (double x) const |
|
Matrix | operator/ (double x) const |
|
void | operator+= (const Matrix &B) |
|
void | operator-= (const Matrix &B) |
|
void | operator*= (double x) |
|
void | operator/= (double x) |
|
Vector | operator* (const Vector &v) const |
|
Vector | tmult (const Vector &v) const |
|
Matrix | tmult (const Matrix &m) const |
|
Matrix | multt (const Matrix &m) const |
|
Matrix | tmultt (const Matrix &m) const |
|
Matrix | transpose () const |
|
Matrix | inverse () const |
|
Matrix | pinverse (const double reltol=0.0) const |
|
void | svd (Matrix &U, SparseMatrix &S, Matrix &V, const bool complete=true) const |
|
double | frobenius_norm () const |
| Get Matrix Frobenius norm.
|
|
double | dot (const Matrix &B) const |
|
void | save (const char *filename) const |
| Save Matrix to file (Format set using file name extension)
|
|
void | load (const char *filename) |
| Load Matrix from file (Format set using file name extension)
|
|
void | save (const std::string &s) const |
|
void | load (const std::string &s) |
|
void | info () const |
| Print info on Matrix.
|
|
| LinOp () |
|
| LinOp (const Dimension m, const Dimension n, const StorageType st, const unsigned d) |
|
| LinOpInfo () |
|
| LinOpInfo (const Dimension m, const Dimension n, const StorageType st, const unsigned d) |
|
virtual | ~LinOpInfo () |
|
Dimension | nlin () const |
|
Dimension & | nlin () |
|
virtual Dimension | ncol () const |
|
Dimension & | ncol () |
|
StorageType | storageType () const |
|
StorageType & | storageType () |
|
unsigned | dimension () const |
|
unsigned & | dimension () |
|
IO & | default_io () |
|
Matrix class Matrix class.
Definition at line 28 of file matrix.h.
◆ Matrix() [1/9]
◆ Matrix() [2/9]
OpenMEEG::Matrix::Matrix |
( |
| ) |
|
|
inline |
◆ Matrix() [3/9]
OpenMEEG::Matrix::Matrix |
( |
const char * | fname | ) |
|
|
inline |
◆ Matrix() [4/9]
OpenMEEG::Matrix::Matrix |
( |
const std::string & | fname | ) |
|
|
inline |
◆ Matrix() [5/9]
◆ Matrix() [6/9]
◆ Matrix() [7/9]
◆ Matrix() [8/9]
◆ Matrix() [9/9]
◆ alloc_data()
void OpenMEEG::Matrix::alloc_data |
( |
| ) |
|
|
inline |
◆ reference_data()
◆ empty()
bool OpenMEEG::Matrix::empty |
( |
| ) |
const |
|
inline |
◆ size()
size_t OpenMEEG::Matrix::size |
( |
| ) |
const |
|
inlinevirtual |
◆ data()
double * OpenMEEG::Matrix::data |
( |
| ) |
const |
|
inline |
◆ operator()() [1/2]
◆ operator()() [2/2]
◆ submat()
◆ insertmat()
◆ getcol()
◆ setcol()
◆ getlin()
◆ setlin()
◆ set()
◆ operator*() [1/5]
◆ operator*() [2/5]
◆ operator*() [3/5]
◆ operator+()
◆ operator-()
◆ operator*() [4/5]
◆ operator/()
◆ operator+=()
◆ operator-=()
◆ operator*=()
◆ operator/=()
◆ operator*() [5/5]
◆ tmult() [1/2]
◆ tmult() [2/2]
◆ multt()
◆ tmultt()
◆ transpose()
Matrix OpenMEEG::Matrix::transpose |
( |
| ) |
const |
◆ inverse()
Matrix OpenMEEG::Matrix::inverse |
( |
| ) |
const |
|
inline |
◆ pinverse()
◆ svd()
◆ frobenius_norm()
double OpenMEEG::Matrix::frobenius_norm |
( |
| ) |
const |
|
inline |
Get Matrix Frobenius norm.
- Returns
- norm value
Definition at line 173 of file matrix.h.
◆ dot()
◆ save() [1/2]
Save Matrix to file (Format set using file name extension)
◆ load() [1/2]
Load Matrix from file (Format set using file name extension)
◆ save() [2/2]
void OpenMEEG::Matrix::save |
( |
const std::string & | s | ) |
const |
|
inline |
◆ load() [2/2]
void OpenMEEG::Matrix::load |
( |
const std::string & | s | ) |
|
|
inline |
◆ info()
void OpenMEEG::Matrix::info |
( |
| ) |
const |
|
virtual |
◆ Vector
◆ SparseMatrix
◆ SymMatrix
◆ value
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/openmeeg-2.5.7/OpenMEEGMaths/include/matrix.h