OpenMEEG
|
#include <gain.h>
Public Member Functions | |
GainMEG (const Matrix &GainMat) | |
GainMEG (const SymMatrix &HeadMatInv, const Matrix &SourceMat, const Matrix &Head2MEGMat, const Matrix &Source2MEGMat) | |
![]() | |
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 () |
Additional Inherited Members | |
![]() | |
enum | StorageType { FULL , SYMMETRIC , BLOCK , BLOCK_SYMMETRIC , SPARSE } |
typedef maths::MathsIO * | IO |
![]() | |
Matrix (const Matrix &A, const Dimension M) | |
![]() | |
LinOpValue | value |
![]() | |
Dimension | num_lines |
Dimension | num_cols |
StorageType | storage |
unsigned | dim |
IO | DefaultIO = nullptr |