|
openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
|
#include <FMatrix.h>
Public Member Functions | |
| void | LUD () |
| void | LUsolve (Real *) |
| FMatrix & | operator= (FMatrix &) |
| template<class T > | |
| FMatrix (T, T) | |
| ~FMatrix () | |
| void | Zero () |
| FMatrix * | Transpose (bool) |
| FMatrix * | Invert () |
| void | resize (int, int) |
| FMatrix * | Inv () |
Public Attributes | |
| int | mxNCols =0 |
| max. number of cols More... | |
| int | mxNRows =0 |
| max. number of rows More... | |
| int | NCols =0 |
| actual number of cols More... | |
| int | NRows =0 |
| actual number of rows More... | |
| int | lsize =0 |
| local size More... | |
| Real ** | Ent =NULL |
| matrix entries More... | |
| bool | decomposed =false |
| true if decomposed More... | |
| int * | indx =NULL |
| indices for decomposition More... | |
| Real ** | base1 =NULL |
| base1 version of matrix More... | |
Routines to perform operations on small, local Full Matrices
For larger, possibly distributed dense matrices, set the matreix structure to DenseSym or DenseASym
| FMatrix::FMatrix | ( | T | , |
| T | |||
| ) |
| FMatrix::~FMatrix | ( | ) |
Free Element Matrix
| M | element matrix |
Definition at line 10 of file FMatrix.cc.
| FMatrix * FMatrix::Inv | ( | ) |
invert a matrix
| [in,out] | A | the matrix |
| [out] | A_inv | the inverted matrix |
A is decomposed, A_inv holds inverseDefinition at line 376 of file FMatrix.cc.
| FMatrix * FMatrix::Invert | ( | ) |
invert a matrix
| [in] | A | the matrix |
| [out] | A_inv | the inverted matrix |
A_inv holds inverse, matrix A is unchangedDefinition at line 407 of file FMatrix.cc.
| void FMatrix::LUD | ( | ) |
perform LU decomposition on an FMatrix
| a | the matrix |
| the | sign of the determinant |
Definition at line 320 of file FMatrix.cc.
| void FMatrix::LUsolve | ( | Real * | rhs | ) |
perform back and forward substitution to solve a linear system Ax=b
| A | the matrix |
| rhs | the right hand side, b |
A has been decomposed and is now base 1rhs is the solution, x Definition at line 355 of file FMatrix.cc.
B:=A
copy matrix A into B
| [in] | A | matrix to be copied |
| [out] | B | matrix we copy into |
Definition at line 48 of file FMatrix.cc.
| void FMatrix::resize | ( | int | nr, |
| int | nc | ||
| ) |
set size of FMatrix to use
| [in,out] | M | the matrix to be resized |
| [in] | nr | number or rows in resized matrix |
| [in] | nc | number of columns in resized matrix |
Definition at line 73 of file FMatrix.cc.
| FMatrix * FMatrix::Transpose | ( | bool | ip | ) |
transpose a matrix
| A | the matrix |
| A_t | the transposed matrix |
A_t can be NULL (in this case A_t will be allocated) or A_t == A (in-place transpose)
A is transposed Definition at line 443 of file FMatrix.cc.
| void FMatrix::Zero | ( | ) |
Zero Element Matrix
| M | element matrix |
Definition at line 28 of file FMatrix.cc.