ergo
|
#include <Matrix.h>
Public Types | |
typedef Vector< Treal, Treal > | VectorType |
typedef Treal | ElementType |
typedef Vector< Treal, typename ElementType::VectorType > | VectorType |
Public Member Functions | |
Matrix () | |
void | allocate () |
void | assignFromFull (std::vector< Treal > const &fullMat) |
void | fullMatrix (std::vector< Treal > &fullMat) const |
void | syFullMatrix (std::vector< Treal > &fullMat) const |
void | syUpTriFullMatrix (std::vector< Treal > &fullMat) const |
void | assignFromSparse (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values) |
void | assignFromSparse (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values, std::vector< int > const &indexes) |
void | addValues (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values) |
void | addValues (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values, std::vector< int > const &indexes) |
void | syAssignFromSparse (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values) |
void | syAddValues (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values) |
void | getValues (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > &values) const |
void | getValues (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > &values, std::vector< int > const &indexes) const |
void | syGetValues (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > &values) const |
void | getAllValues (std::vector< int > &rowind, std::vector< int > &colind, std::vector< Treal > &values) const |
void | syGetAllValues (std::vector< int > &rowind, std::vector< int > &colind, std::vector< Treal > &values) const |
Matrix< Treal > & | operator= (const Matrix< Treal > &mat) |
void | clear () |
Set matrix to zero and delete all arrays. | |
~Matrix () | |
void | writeToFile (std::ofstream &file) const |
void | readFromFile (std::ifstream &file) |
void | random () |
void | syRandom () |
void | randomZeroStructure (Treal probabilityBeingZero) |
void | syRandomZeroStructure (Treal probabilityBeingZero) |
template<typename TRule> | |
void | setElementsByRule (TRule &rule) |
template<typename TRule> | |
void | sySetElementsByRule (TRule &rule) |
void | addIdentity (Treal alpha) |
void | symToNosym () |
void | nosymToSym () |
Matrix< Treal > & | operator= (int const k) |
Matrix< Treal > & | operator*= (const Treal alpha) |
Treal | frob () const |
Treal | frobSquared () const |
Treal | syFrob () const |
Treal | syFrobSquared () const |
Treal | trace () const |
void | assign (Treal const alpha, Matrix< Treal > const &A) |
void | getFrobSqLowestLevel (std::vector< Treal > &frobsq) const |
void | frobThreshLowestLevel (Treal const threshold, Matrix< Treal > *ErrorMatrix) |
void | getFrobSqElementLevel (std::vector< Treal > &frobsq) const |
void | frobThreshElementLevel (Treal const threshold, Matrix< Treal > *ErrorMatrix) |
void | assignFrobNormsLowestLevel (Matrix< Treal, Matrix< Treal > > const &A) |
void | syAssignFrobNormsLowestLevel (Matrix< Treal, Matrix< Treal > > const &A) |
void | assignDiffFrobNormsLowestLevel (Matrix< Treal, Matrix< Treal > > const &A, Matrix< Treal, Matrix< Treal > > const &B) |
void | syAssignDiffFrobNormsLowestLevel (Matrix< Treal, Matrix< Treal > > const &A, Matrix< Treal, Matrix< Treal > > const &B) |
void | truncateAccordingToSparsityPattern (Matrix< Treal, Matrix< Treal > > &A) const |
Treal | frob_thresh (Treal const threshold, Matrix< Treal > *ErrorMatrix=0) |
Treal | frob_squared_thresh (Treal const threshold, Matrix< Treal > *ErrorMatrix=0) |
void | gershgorin (Treal &lmin, Treal &lmax) const |
void | sy_gershgorin (Treal &lmin, Treal &lmax) const |
void | add_abs_col_sums (Treal *abscolsums) const |
void | get_diagonal (Treal *diag) const |
size_t | memory_usage () const |
size_t | nnz () const |
Returns number of nonzeros in matrix. | |
size_t | sy_nnz () const |
Returns number of nonzeros in matrix including lower triangle elements. | |
size_t | nvalues () const |
Returns number of stored values in matrix. | |
size_t | sy_nvalues () const |
Returns number of stored values in matrix. | |
template<class Top> | |
Treal | syAccumulateWith (Top &op) |
template<class Top> | |
Treal | geAccumulateWith (Top &op) |
Treal | maxAbsValue () const |
Matrix () | |
void | allocate () |
void | assignFromFull (std::vector< Treal > const &fullMat) |
void | fullMatrix (std::vector< Treal > &fullMat) const |
void | syFullMatrix (std::vector< Treal > &fullMat) const |
void | syUpTriFullMatrix (std::vector< Treal > &fullMat) const |
void | assignFromSparse (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values) |
void | assignFromSparse (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values, std::vector< int > const &indexes) |
void | addValues (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values) |
void | addValues (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values, std::vector< int > const &indexes) |
void | syAssignFromSparse (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values) |
void | syAddValues (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values) |
void | getValues (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > &values) const |
void | getValues (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > &, std::vector< int > const &indexes) const |
void | syGetValues (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > &values) const |
void | getAllValues (std::vector< int > &rowind, std::vector< int > &colind, std::vector< Treal > &) const |
void | syGetAllValues (std::vector< int > &rowind, std::vector< int > &colind, std::vector< Treal > &) const |
Matrix< Treal, Treal > & | operator= (const Matrix< Treal, Treal > &mat) |
Matrix< Treal, Treal > & | operator= (int const k) |
void | clear () |
~Matrix () | |
void | writeToFile (std::ofstream &file) const |
void | readFromFile (std::ifstream &file) |
void | random () |
void | syRandom () |
void | randomZeroStructure (Treal probabilityBeingZero) |
Get a random zero structure with a specified probability that each submatrix is zero. | |
void | syRandomZeroStructure (Treal probabilityBeingZero) |
void | setElementsByRule (TRule &rule) |
void | sySetElementsByRule (TRule &rule) |
void | trSetElementsByRule (TRule &rule) |
void | addIdentity (Treal alpha) |
void | symToNosym () |
void | nosymToSym () |
Matrix< Treal, Treal > & | operator*= (const Treal alpha) |
Treal | frob () const |
Treal | frobSquared () const |
Treal | syFrob () const |
Treal | syFrobSquared () const |
Treal | trace () const |
void | assign (Treal const alpha, Matrix< Treal, Treal > const &A) |
void | getFrobSqLowestLevel (std::vector< Treal > &frobsq) const |
void | frobThreshLowestLevel (Treal const threshold, Matrix< Treal, Treal > *ErrorMatrix) |
void | getFrobSqElementLevel (std::vector< Treal > &frobsq) const |
void | frobThreshElementLevel (Treal const threshold, Matrix< Treal, Treal > *ErrorMatrix) |
void | assignFrobNormsLowestLevel (Matrix< Treal, Matrix< Treal, Treal > > const &A) |
Build a matrix with single matrix elements at the lowest level containing the Frobenius norms of the submatrices of A. | |
void | syAssignFrobNormsLowestLevel (Matrix< Treal, Matrix< Treal, Treal > > const &A) |
Version of assignFrobNormsLowestLevelToMatrix for symmetric matrices. | |
void | assignDiffFrobNormsLowestLevel (Matrix< Treal, Matrix< Treal, Treal > > const &A, Matrix< Treal, Matrix< Treal, Treal > > const &B) |
Same as assignFrobNormsLowestLevel except that the Frobenius norms of the differences between submatrices of A and B are assigned. | |
void | syAssignDiffFrobNormsLowestLevel (Matrix< Treal, Matrix< Treal, Treal > > const &A, Matrix< Treal, Matrix< Treal, Treal > > const &B) |
Same as syAssignFrobNormsLowestLevel except that the Frobenius norms of the differences between submatrices of A and B are assigned. | |
void | truncateAccordingToSparsityPattern (Matrix< Treal, Matrix< Treal, Treal > > &A) const |
Truncate matrix A according to the sparsity pattern of the this matrix (frobNormMat). | |
Treal | frob_thresh (Treal const threshold, Matrix< Treal, Treal > *ErrorMatrix=0) |
Removes small elements so that the introduced error is smaller than the threshold in the Frobenius norm Returns the Frobenius norm of the introduced error. | |
Treal | frob_squared_thresh (Treal const threshold, Matrix< Treal, Treal > *ErrorMatrix=0) |
Removes small elements so that the introduced error is smaller than threshold in the squared Frobenius norm, returns squared frobenius norm of the introduced error added to ErrorMatrix. | |
void | gershgorin (Treal &lmin, Treal &lmax) const |
void | sy_gershgorin (Treal &lmin, Treal &lmax) const |
void | add_abs_col_sums (Treal *abscolsums) const |
void | get_diagonal (Treal *diag) const |
size_t | memory_usage () const |
size_t | nnz () const |
Returns number of nonzeros in matrix. | |
size_t | sy_nnz () const |
Returns number of nonzeros in matrix including lower triangle elements. | |
size_t | nvalues () const |
Returns number of stored values in matrix. | |
size_t | sy_nvalues () const |
Returns number of stored values in matrix. | |
Treal | syAccumulateWith (Top &op) |
Treal | geAccumulateWith (Top &op) |
Accumulation algorithm for general matrices. | |
Treal | maxAbsValue () const |
![]() | |
bool | operator== (int k) const |
const int & | nScalarsRows () const |
const int & | nScalarsCols () const |
const int & | nrows () const |
const int & | ncols () const |
Treal & | operator ()(int row |
const Treal & | operator ()(int row |
assert (row >=0) | |
assert (col >=0) | |
assert (row< nrows()) | |
assert (col< ncols()) | |
assert (row >=0) | |
assert (col >=0) | |
assert (row< nrows()) | |
assert (col< ncols()) | |
Treal & | operator[] (int index) |
Treal const & | operator[] (int index) const |
bool | is_zero () const |
int | nElements () const |
void | resetRows (SizesAndBlocks const &newRows) |
void | resetCols (SizesAndBlocks const &newCols) |
void | getRows (SizesAndBlocks &rowsCopy) const |
void | getCols (SizesAndBlocks &colsCopy) const |
bool | highestLevel () const |
bool | is_empty () const |
Check if matrix is empty Empty is different from zero, a zero matrix contains information about blocksizes etc. | |
![]() | |
bool | operator== (int k) const |
const int & | nScalarsRows () const |
const int & | nScalarsCols () const |
const int & | nrows () const |
const int & | ncols () const |
Telement & | operator ()(int row |
assert (row >=0) | |
assert (col >=0) | |
assert (row< nrows()) | |
assert (col< ncols()) | |
const Telement & | operator ()(int row |
assert (row >=0) | |
assert (col >=0) | |
assert (row< nrows()) | |
assert (col< ncols()) | |
Telement & | operator[] (int index) |
Telement const & | operator[] (int index) const |
bool | is_zero () const |
int | nElements () const |
void | resetRows (SizesAndBlocks const &newRows) |
void | resetCols (SizesAndBlocks const &newCols) |
void | getRows (SizesAndBlocks &rowsCopy) const |
void | getCols (SizesAndBlocks &colsCopy) const |
bool | highestLevel () const |
bool | is_empty () const |
Check if matrix is empty Empty is different from zero, a zero matrix contains information about blocksizes etc. | |
Static Public Member Functions | |
static void | transpose (Matrix< Treal > const &A, Matrix< Treal > &AT) |
static void | gemm (const bool tA, const bool tB, const Treal alpha, const Matrix< Treal > &A, const Matrix< Treal > &B, const Treal beta, Matrix< Treal > &C) |
static void | symm (const char side, const char uplo, const Treal alpha, const Matrix< Treal > &A, const Matrix< Treal > &B, const Treal beta, Matrix< Treal > &C) |
static void | syrk (const char uplo, const bool tA, const Treal alpha, const Matrix< Treal > &A, const Treal beta, Matrix< Treal > &C) |
static void | sysq (const char uplo, const Treal alpha, const Matrix< Treal > &A, const Treal beta, Matrix< Treal > &C) |
static void | ssmm (const Treal alpha, const Matrix< Treal > &A, const Matrix< Treal > &B, const Treal beta, Matrix< Treal > &C) |
static void | ssmm_upper_tr_only (const Treal alpha, const Matrix< Treal > &A, const Matrix< Treal > &B, const Treal beta, Matrix< Treal > &C) |
static void | trmm (const char side, const char uplo, const bool tA, const Treal alpha, const Matrix< Treal > &A, Matrix< Treal > &B) |
static Treal | frobDiff (const Matrix< Treal > &A, const Matrix< Treal > &B) |
static Treal | frobSquaredDiff (const Matrix< Treal > &A, const Matrix< Treal > &B) |
static Treal | syFrobDiff (const Matrix< Treal > &A, const Matrix< Treal > &B) |
static Treal | syFrobSquaredDiff (const Matrix< Treal > &A, const Matrix< Treal > &B) |
static Treal | trace_ab (const Matrix< Treal > &A, const Matrix< Treal > &B) |
static Treal | trace_aTb (const Matrix< Treal > &A, const Matrix< Treal > &B) |
static Treal | sy_trace_ab (const Matrix< Treal > &A, const Matrix< Treal > &B) |
static void | add (const Treal alpha, const Matrix< Treal > &A, Matrix< Treal > &B) |
static void | gemm_upper_tr_only (const bool tA, const bool tB, const Treal alpha, const Matrix< Treal > &A, const Matrix< Treal > &B, const Treal beta, Matrix< Treal > &C) |
static void | sytr_upper_tr_only (char const side, const Treal alpha, Matrix< Treal > &A, const Matrix< Treal > &Z) |
static void | trmm_upper_tr_only (const char side, const char uplo, const bool tA, const Treal alpha, const Matrix< Treal > &A, Matrix< Treal > &B) |
static void | trsytriplemm (char const side, const Matrix< Treal > &Z, Matrix< Treal > &A) |
static void | inch (const Matrix< Treal > &A, Matrix< Treal > &Z, const Treal threshold=0, const side looking=left, const inchversion version=unstable) |
static void | syInch (const Matrix< Treal > &A, Matrix< Treal > &Z, const Treal threshold=0, const side looking=left, const inchversion version=unstable) |
static unsigned int | level () |
static void | transpose (Matrix< Treal, Treal > const &A, Matrix< Treal, Treal > &AT) |
static void | gemm (const bool tA, const bool tB, const Treal alpha, const Matrix< Treal, Treal > &A, const Matrix< Treal, Treal > &B, const Treal beta, Matrix< Treal, Treal > &C) |
static void | symm (const char side, const char uplo, const Treal alpha, const Matrix< Treal, Treal > &A, const Matrix< Treal, Treal > &B, const Treal beta, Matrix< Treal, Treal > &C) |
static void | syrk (const char uplo, const bool tA, const Treal alpha, const Matrix< Treal, Treal > &A, const Treal beta, Matrix< Treal, Treal > &C) |
static void | sysq (const char uplo, const Treal alpha, const Matrix< Treal, Treal > &A, const Treal beta, Matrix< Treal, Treal > &C) |
static void | ssmm (const Treal alpha, const Matrix< Treal, Treal > &A, const Matrix< Treal, Treal > &B, const Treal beta, Matrix< Treal, Treal > &C) |
static void | ssmm_upper_tr_only (const Treal alpha, const Matrix< Treal, Treal > &A, const Matrix< Treal, Treal > &B, const Treal beta, Matrix< Treal, Treal > &C) |
static void | trmm (const char side, const char uplo, const bool tA, const Treal alpha, const Matrix< Treal, Treal > &A, Matrix< Treal, Treal > &B) |
static Treal | frobDiff (const Matrix< Treal, Treal > &A, const Matrix< Treal, Treal > &B) |
static Treal | frobSquaredDiff (const Matrix< Treal, Treal > &A, const Matrix< Treal, Treal > &B) |
static Treal | syFrobDiff (const Matrix< Treal, Treal > &A, const Matrix< Treal, Treal > &B) |
static Treal | syFrobSquaredDiff (const Matrix< Treal, Treal > &A, const Matrix< Treal, Treal > &B) |
static Treal | trace_ab (const Matrix< Treal, Treal > &A, const Matrix< Treal, Treal > &B) |
static Treal | trace_aTb (const Matrix< Treal, Treal > &A, const Matrix< Treal, Treal > &B) |
static Treal | sy_trace_ab (const Matrix< Treal, Treal > &A, const Matrix< Treal, Treal > &B) |
static void | add (const Treal alpha, const Matrix< Treal, Treal > &A, Matrix< Treal, Treal > &B) |
static void | gemm_upper_tr_only (const bool tA, const bool tB, const Treal alpha, const Matrix< Treal, Treal > &A, const Matrix< Treal, Treal > &B, const Treal beta, Matrix< Treal, Treal > &C) |
static void | sytr_upper_tr_only (char const side, const Treal alpha, Matrix< Treal, Treal > &A, const Matrix< Treal, Treal > &Z) |
static void | trmm_upper_tr_only (const char side, const char uplo, const bool tA, const Treal alpha, const Matrix< Treal, Treal > &A, Matrix< Treal, Treal > &B) |
static void | trsytriplemm (char const side, const Matrix< Treal, Treal > &Z, Matrix< Treal, Treal > &A) |
static void | syInch (const Matrix< Treal, Treal > &A, Matrix< Treal, Treal > &Z, const Treal threshold=0, const side looking=left, const inchversion version=unstable) |
static unsigned int | level () |
Static Private Attributes | |
static const Treal | ZERO |
static const Treal | ONE |
Friends | |
class | Vector< Treal, Treal > |
class | Vector< Treal, Telement > |
typedef Treal mat::Matrix< Treal, Treal >::ElementType |
typedef Vector<Treal, typename ElementType::VectorType> mat::Matrix< Treal, Treal >::VectorType |
typedef Vector<Treal, Treal> mat::Matrix< Treal >::VectorType |
|
inline |
References mat::MatrixHierarchicBase< Treal, Telement >::MatrixHierarchicBase().
Referenced by add(), assign(), assignDiffFrobNormsLowestLevel(), assignFrobNormsLowestLevel(), frob_squared_thresh(), frob_thresh(), frobDiff(), frobSquaredDiff(), frobThreshElementLevel(), frobThreshLowestLevel(), gemm(), gemm_upper_tr_only(), inch(), operator*=(), operator=(), ssmm(), ssmm_upper_tr_only(), sy_gershgorin(), sy_trace_ab(), syAssignDiffFrobNormsLowestLevel(), syAssignFrobNormsLowestLevel(), syFrobDiff(), syFrobSquaredDiff(), syInch(), symm(), syrk(), sysq(), sytr_upper_tr_only(), trace_ab(), trace_aTb(), transpose(), trmm(), trmm_upper_tr_only(), trsytriplemm(), and truncateAccordingToSparsityPattern().
|
inline |
References mat::Matrix< Treal, Telement >::clear().
|
inline |
|
inline |
|
static |
References A, mat::MatrixHierarchicBase< Treal, Telement >::assert(), B, and Matrix().
|
static |
void mat::Matrix< Treal, Treal >::add_abs_col_sums | ( | Treal * | abscolsums | ) | const |
void mat::Matrix< Treal >::add_abs_col_sums | ( | Treal * | abscolsums | ) | const |
References mat::MatrixHierarchicBase< Treal, Telement >::assert(), mat::MatrixHierarchicBase< Treal, Telement >::col, mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), mat::MatrixHierarchicBase< Treal, Telement >::ncols(), mat::MatrixHierarchicBase< Treal, Telement >::nrows(), and template_blas_fabs().
Referenced by gershgorin().
void mat::Matrix< Treal, Treal >::addIdentity | ( | Treal | alpha | ) |
void mat::Matrix< Treal >::addIdentity | ( | Treal | alpha | ) |
void mat::Matrix< Treal, Treal >::addValues | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > const & | values ) |
void mat::Matrix< Treal >::addValues | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > const & | values ) |
References addValues(), and mat::MatrixHierarchicBase< Treal, Telement >::assert().
Referenced by addValues(), and syAddValues().
void mat::Matrix< Treal, Treal >::addValues | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > const & | values, | ||
std::vector< int > const & | indexes ) |
void mat::Matrix< Treal >::addValues | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > const & | values, | ||
std::vector< int > const & | indexes ) |
|
inline |
|
inline |
References mat::allocateElements(), mat::MatrixHierarchicBase< Treal, Treal >::assert(), mat::MatrixHierarchicBase< Treal, Telement >::elements, mat::MatrixHierarchicBase< Treal, Treal >::is_empty(), mat::MatrixHierarchicBase< Treal, Treal >::is_zero(), and mat::MatrixHierarchicBase< Treal, Treal >::nElements().
Referenced by addIdentity(), addValues(), assignFromFull(), assignFromSparse(), frobThreshElementLevel(), operator=(), random(), readFromFile(), setElementsByRule(), syRandom(), and sySetElementsByRule().
void mat::Matrix< Treal >::assign | ( | Treal const | alpha, |
Matrix< Treal > const & | A ) |
void mat::Matrix< Treal, Treal >::assign | ( | Treal const | alpha, |
Matrix< Treal, Treal > const & | A ) |
|
inline |
References A, mat::Matrix< Treal, Telement >::add(), mat::Matrix< Treal, Telement >::allocate(), mat::MatrixHierarchicBase< Treal, Treal >::assert(), mat::Matrix< Treal, Telement >::assignFrobNormsLowestLevel(), B, mat::Matrix< Treal, Telement >::clear(), mat::MatrixHierarchicBase< Treal, Telement >::elements, mat::Matrix< Treal, Telement >::frob(), mat::MatrixHierarchicBase< Treal, Treal >::is_zero(), Matrix(), and mat::MatrixHierarchicBase< Treal, Treal >::nElements().
void mat::Matrix< Treal, Treal >::assignDiffFrobNormsLowestLevel | ( | Matrix< Treal, Matrix< Treal, Treal > > const & | A, |
Matrix< Treal, Matrix< Treal, Treal > > const & | B ) |
Same as assignFrobNormsLowestLevel except that the Frobenius norms of the differences between submatrices of A and B are assigned.
|
inline |
References A, mat::Matrix< Treal, Telement >::allocate(), mat::MatrixHierarchicBase< Treal, Treal >::assert(), mat::Matrix< Treal, Telement >::clear(), mat::MatrixHierarchicBase< Treal, Telement >::elements, mat::Matrix< Treal, Telement >::frob(), mat::MatrixHierarchicBase< Treal, Treal >::is_zero(), Matrix(), and mat::MatrixHierarchicBase< Treal, Treal >::nElements().
void mat::Matrix< Treal, Treal >::assignFrobNormsLowestLevel | ( | Matrix< Treal, Matrix< Treal, Treal > > const & | A | ) |
Build a matrix with single matrix elements at the lowest level containing the Frobenius norms of the submatrices of A.
void mat::Matrix< Treal, Treal >::assignFromFull | ( | std::vector< Treal > const & | fullMat | ) |
void mat::Matrix< Treal >::assignFromFull | ( | std::vector< Treal > const & | fullMat | ) |
References allocate(), mat::MatrixHierarchicBase< Treal, Telement >::assert(), mat::MatrixHierarchicBase< Treal, Telement >::col, mat::MatrixHierarchicBase< Treal, Telement >::cols, mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), mat::MatrixHierarchicBase< Treal, Telement >::ncols(), mat::MatrixHierarchicBase< Treal, Telement >::nrows(), and mat::MatrixHierarchicBase< Treal, Telement >::rows.
void mat::Matrix< Treal, Treal >::assignFromSparse | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > const & | values ) |
void mat::Matrix< Treal >::assignFromSparse | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > const & | values ) |
References mat::MatrixHierarchicBase< Treal, Telement >::assert(), and assignFromSparse().
Referenced by assignFromSparse(), and syAssignFromSparse().
void mat::Matrix< Treal, Treal >::assignFromSparse | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > const & | values, | ||
std::vector< int > const & | indexes ) |
void mat::Matrix< Treal >::assignFromSparse | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > const & | values, | ||
std::vector< int > const & | indexes ) |
References allocate(), clear(), mat::MatrixHierarchicBase< Treal, Telement >::cols, mat::MatrixHierarchicBase< Treal, Telement >::elements, mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), mat::MatrixHierarchicBase< Treal, Telement >::nElements(), and mat::MatrixHierarchicBase< Treal, Telement >::rows.
void mat::Matrix< Treal, Treal >::clear | ( | ) |
void mat::Matrix< Treal >::clear | ( | ) |
Set matrix to zero and delete all arrays.
References mat::MatrixHierarchicBase< Treal, Telement >::elements, and mat::freeElements().
Referenced by assignFromSparse(), frobThreshElementLevel(), frobThreshLowestLevel(), operator=(), randomZeroStructure(), readFromFile(), and syRandomZeroStructure().
|
inline |
|
inline |
References mat::Matrix< Treal, Telement >::frobSquared(), and template_blas_sqrt().
Treal mat::Matrix< Treal >::frob_squared_thresh | ( | Treal const | threshold, |
Matrix< Treal > * | ErrorMatrix = 0 ) |
References mat::MatrixHierarchicBase< Treal, Telement >::assert(), mat::MatrixHierarchicBase< Treal, Telement >::cols, frobSquared(), mat::MatrixHierarchicBase< Treal, Telement >::is_empty(), Matrix(), mat::MatrixHierarchicBase< Treal, Telement >::resetCols(), mat::MatrixHierarchicBase< Treal, Telement >::resetRows(), mat::MatrixHierarchicBase< Treal, Telement >::rows, and mat::MatrixHierarchicBase< Treal, Treal >::swap().
Treal mat::Matrix< Treal, Treal >::frob_squared_thresh | ( | Treal const | threshold, |
Matrix< Treal, Treal > * | ErrorMatrix = 0 ) |
Removes small elements so that the introduced error is smaller than threshold in the squared Frobenius norm, returns squared frobenius norm of the introduced error added to ErrorMatrix.
|
inline |
|
inline |
Removes small elements so that the introduced error is smaller than the threshold in the Frobenius norm Returns the Frobenius norm of the introduced error.
|
inlinestatic |
References A, B, mat::Matrix< Treal, Telement >::frobSquaredDiff(), Matrix(), and template_blas_sqrt().
|
inlinestatic |
Treal mat::Matrix< Treal, Treal >::frobSquared | ( | ) | const |
Treal mat::Matrix< Treal >::frobSquared | ( | ) | const |
References mat::MatrixHierarchicBase< Treal, Telement >::assert(), mat::MatrixHierarchicBase< Treal, Telement >::elements, mat::MatrixHierarchicBase< Treal, Telement >::is_empty(), mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), and mat::MatrixHierarchicBase< Treal, Telement >::nElements().
Referenced by frob_squared_thresh(), frobThreshLowestLevel(), and getFrobSqLowestLevel().
|
static |
References A, mat::MatrixHierarchicBase< Treal, Telement >::assert(), B, and Matrix().
|
static |
void mat::Matrix< Treal >::frobThreshElementLevel | ( | Treal const | threshold, |
Matrix< Treal > * | ErrorMatrix ) |
References mat::Matrix< Treal, Telement >::allocate(), allocate(), mat::MatrixHierarchicBase< Treal, Telement >::assert(), mat::Matrix< Treal, Telement >::clear(), clear(), mat::MatrixHierarchicBase< Treal, Telement >::elements, mat::MatrixHierarchicBase< Treal, Telement >::is_empty(), mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), Matrix(), and mat::MatrixHierarchicBase< Treal, Telement >::nElements().
void mat::Matrix< Treal, Treal >::frobThreshElementLevel | ( | Treal const | threshold, |
Matrix< Treal, Treal > * | ErrorMatrix ) |
void mat::Matrix< Treal >::frobThreshLowestLevel | ( | Treal const | threshold, |
Matrix< Treal > * | ErrorMatrix ) |
void mat::Matrix< Treal, Treal >::frobThreshLowestLevel | ( | Treal const | threshold, |
Matrix< Treal, Treal > * | ErrorMatrix ) |
void mat::Matrix< Treal, Treal >::fullMatrix | ( | std::vector< Treal > & | fullMat | ) | const |
void mat::Matrix< Treal >::fullMatrix | ( | std::vector< Treal > & | fullMat | ) | const |
References mat::MatrixHierarchicBase< Treal, Telement >::col, mat::MatrixHierarchicBase< Treal, Telement >::cols, mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), mat::MatrixHierarchicBase< Treal, Telement >::ncols(), mat::MatrixHierarchicBase< Treal, Telement >::nrows(), mat::MatrixHierarchicBase< Treal, Telement >::nScalarsCols(), mat::MatrixHierarchicBase< Treal, Telement >::nScalarsRows(), and mat::MatrixHierarchicBase< Treal, Telement >::rows.
|
inline |
Accumulation algorithm for general matrices.
|
inline |
References mat::MatrixHierarchicBase< Treal, Telement >::col, mat::MatrixHierarchicBase< Treal, Telement >::cols, mat::MatrixHierarchicBase< Treal, Treal >::is_zero(), mat::MatrixHierarchicBase< Treal, Treal >::ncols(), mat::MatrixHierarchicBase< Treal, Treal >::nrows(), and mat::MatrixHierarchicBase< Treal, Telement >::rows.
|
static |
References A, mat::Matrix< Treal, Telement >::allocate(), mat::MatrixHierarchicBase< Treal, Telement >::assert(), B, mat::MatrixHierarchicBase< Treal, Telement >::elements, mat::gemm(), mat::MatrixHierarchicBase< Treal, Telement >::is_empty(), mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), Matrix(), mat::MatrixHierarchicBase< Treal, Telement >::ncols(), mat::MatrixHierarchicBase< Treal, Telement >::nrows(), mat::MatrixHierarchicBase< Treal, Telement >::resetCols(), and mat::MatrixHierarchicBase< Treal, Telement >::resetRows().
|
static |
|
static |
References A, B, mat::Matrix< Treal, Telement >::gemm(), Matrix(), and mat::Matrix< Treal, Telement >::nosymToSym().
|
static |
void mat::Matrix< Treal, Treal >::gershgorin | ( | Treal & | lmin, |
Treal & | lmax ) const |
void mat::Matrix< Treal >::gershgorin | ( | Treal & | lmin, |
Treal & | lmax ) const |
References add_abs_col_sums(), mat::MatrixHierarchicBase< Treal, Telement >::assert(), mat::MatrixHierarchicBase< Treal, Telement >::col, get_diagonal(), mat::MatrixHierarchicBase< Treal, Telement >::is_empty(), mat::MatrixHierarchicBase< Treal, Telement >::nScalarsCols(), mat::MatrixHierarchicBase< Treal, Telement >::nScalarsRows(), and template_blas_fabs().
void mat::Matrix< Treal, Treal >::get_diagonal | ( | Treal * | diag | ) | const |
void mat::Matrix< Treal >::get_diagonal | ( | Treal * | diag | ) | const |
References mat::MatrixHierarchicBase< Treal, Telement >::assert(), mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), mat::MatrixHierarchicBase< Treal, Telement >::ncols(), mat::MatrixHierarchicBase< Treal, Telement >::nrows(), and mat::MatrixHierarchicBase< Treal, Telement >::nScalarsCols().
Referenced by gershgorin().
void mat::Matrix< Treal, Treal >::getAllValues | ( | std::vector< int > & | rowind, |
std::vector< int > & | colind, | ||
std::vector< Treal > & | values ) const |
void mat::Matrix< Treal >::getAllValues | ( | std::vector< int > & | rowind, |
std::vector< int > & | colind, | ||
std::vector< Treal > & | values ) const |
References mat::MatrixHierarchicBase< Treal, Telement >::assert(), mat::MatrixHierarchicBase< Treal, Telement >::col, mat::MatrixHierarchicBase< Treal, Telement >::cols, mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), mat::MatrixHierarchicBase< Treal, Telement >::ncols(), mat::MatrixHierarchicBase< Treal, Telement >::nrows(), and mat::MatrixHierarchicBase< Treal, Telement >::rows.
void mat::Matrix< Treal, Treal >::getFrobSqElementLevel | ( | std::vector< Treal > & | frobsq | ) | const |
void mat::Matrix< Treal >::getFrobSqElementLevel | ( | std::vector< Treal > & | frobsq | ) | const |
void mat::Matrix< Treal, Treal >::getFrobSqLowestLevel | ( | std::vector< Treal > & | frobsq | ) | const |
void mat::Matrix< Treal >::getFrobSqLowestLevel | ( | std::vector< Treal > & | frobsq | ) | const |
References frobSquared(), and mat::MatrixHierarchicBase< Treal, Telement >::is_zero().
void mat::Matrix< Treal, Treal >::getValues | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > & | values, | ||
std::vector< int > const & | indexes ) const |
void mat::Matrix< Treal, Treal >::getValues | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > & | values ) const |
void mat::Matrix< Treal >::getValues | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > & | values ) const |
References mat::MatrixHierarchicBase< Treal, Telement >::assert(), and getValues().
Referenced by getValues(), and syGetValues().
void mat::Matrix< Treal >::getValues | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > & | values, | ||
std::vector< int > const & | indexes ) const |
|
static |
References A, mat::MatrixHierarchicBase< Treal, Telement >::assert(), mat::MatrixHierarchicBase< Treal, Telement >::elements, Matrix(), mat::potrf(), mat::trifulltofull(), and mat::trtri().
Referenced by syInch().
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
size_t mat::Matrix< Treal, Treal >::memory_usage | ( | ) | const |
|
inline |
size_t mat::Matrix< Treal, Treal >::nnz | ( | ) | const |
Returns number of nonzeros in matrix.
|
inline |
Returns number of nonzeros in matrix.
References mat::MatrixHierarchicBase< Treal, Treal >::is_zero(), and mat::MatrixHierarchicBase< Treal, Treal >::nElements().
void mat::Matrix< Treal, Treal >::nosymToSym | ( | ) |
void mat::Matrix< Treal >::nosymToSym | ( | ) |
|
inline |
Returns number of stored values in matrix.
Returns same number as nnz()
|
inline |
Returns number of stored values in matrix.
Returns same number as nnz()
References mat::Matrix< Treal, Telement >::nnz().
Matrix< Treal, Treal > & mat::Matrix< Treal, Treal >::operator*= | ( | const Treal | alpha | ) |
Matrix< Treal > & mat::Matrix< Treal >::operator*= | ( | const Treal | alpha | ) |
|
inline |
References Matrix(), and mat::MatrixHierarchicBase< Treal, Telement >::operator=().
|
inline |
Matrix< Treal, Treal > & mat::Matrix< Treal, Treal >::operator= | ( | int const | k | ) |
Matrix< Treal > & mat::Matrix< Treal >::operator= | ( | int const | k | ) |
void mat::Matrix< Treal, Treal >::random | ( | ) |
void mat::Matrix< Treal >::random | ( | ) |
void mat::Matrix< Treal, Treal >::randomZeroStructure | ( | Treal | probabilityBeingZero | ) |
Get a random zero structure with a specified probability that each submatrix is zero.
void mat::Matrix< Treal >::randomZeroStructure | ( | Treal | probabilityBeingZero | ) |
References clear(), mat::MatrixHierarchicBase< Treal, Telement >::highestLevel(), and random().
void mat::Matrix< Treal, Treal >::readFromFile | ( | std::ifstream & | file | ) |
void mat::Matrix< Treal >::readFromFile | ( | std::ifstream & | file | ) |
void mat::Matrix< Treal, Treal >::setElementsByRule | ( | TRule & | rule | ) |
void mat::Matrix< Treal >::setElementsByRule | ( | TRule & | rule | ) |
|
static |
References A, mat::MatrixHierarchicBase< Treal, Telement >::assert(), B, mat::MatrixHierarchicBase< Treal, Telement >::is_empty(), Matrix(), mat::MatrixHierarchicBase< Treal, Telement >::resetCols(), mat::MatrixHierarchicBase< Treal, Telement >::resetRows(), mat::Matrix< Treal, Telement >::symm(), and mat::Matrix< Treal, Telement >::symToNosym().
Referenced by ssmm_upper_tr_only().
|
static |
|
static |
References A, B, Matrix(), mat::Matrix< Treal, Telement >::nosymToSym(), and ssmm().
|
static |
|
inline |
|
inline |
size_t mat::Matrix< Treal, Treal >::sy_nnz | ( | ) | const |
Returns number of nonzeros in matrix including lower triangle elements.
|
inline |
Returns number of nonzeros in matrix including lower triangle elements.
References mat::MatrixHierarchicBase< Treal, Treal >::is_zero(), and mat::MatrixHierarchicBase< Treal, Treal >::nElements().
size_t mat::Matrix< Treal, Treal >::sy_nvalues | ( | ) | const |
Returns number of stored values in matrix.
Lower triangle is not included. Lower triangle in diagonal submatrices is not included as well. Different from sy_nnz().
|
inline |
Returns number of stored values in matrix.
Lower triangle is not included. Different from sy_nnz().
References mat::MatrixHierarchicBase< Treal, Treal >::assert(), mat::MatrixHierarchicBase< Treal, Treal >::is_zero(), mat::MatrixHierarchicBase< Treal, Treal >::nrows(), mat::MatrixHierarchicBase< Treal, Treal >::nScalarsCols(), and mat::MatrixHierarchicBase< Treal, Treal >::nScalarsRows().
|
static |
References A, mat::MatrixHierarchicBase< Treal, Telement >::assert(), B, and Matrix().
|
static |
|
inline |
|
inline |
void mat::Matrix< Treal, Treal >::syAddValues | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > const & | values ) |
void mat::Matrix< Treal >::syAddValues | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > const & | values ) |
References addValues(), and mat::MatrixHierarchicBase< Treal, Telement >::assert().
|
inline |
References A, mat::Matrix< Treal, Telement >::add(), mat::Matrix< Treal, Telement >::allocate(), mat::MatrixHierarchicBase< Treal, Treal >::assert(), B, mat::Matrix< Treal, Telement >::clear(), mat::MatrixHierarchicBase< Treal, Telement >::col, mat::Matrix< Treal, Telement >::frob(), mat::MatrixHierarchicBase< Treal, Treal >::is_zero(), Matrix(), mat::MatrixHierarchicBase< Treal, Treal >::ncols(), mat::MatrixHierarchicBase< Treal, Treal >::nElements(), mat::Matrix< Treal, Telement >::syAssignFrobNormsLowestLevel(), and mat::Matrix< Treal, Telement >::syFrob().
void mat::Matrix< Treal, Treal >::syAssignDiffFrobNormsLowestLevel | ( | Matrix< Treal, Matrix< Treal, Treal > > const & | A, |
Matrix< Treal, Matrix< Treal, Treal > > const & | B ) |
Same as syAssignFrobNormsLowestLevel except that the Frobenius norms of the differences between submatrices of A and B are assigned.
|
inline |
References A, mat::Matrix< Treal, Telement >::allocate(), mat::MatrixHierarchicBase< Treal, Treal >::assert(), mat::Matrix< Treal, Telement >::clear(), mat::MatrixHierarchicBase< Treal, Telement >::col, mat::MatrixHierarchicBase< Treal, Treal >::is_zero(), Matrix(), mat::MatrixHierarchicBase< Treal, Treal >::ncols(), mat::MatrixHierarchicBase< Treal, Treal >::nElements(), and mat::MatrixHierarchicBase< Treal, Treal >::nrows().
void mat::Matrix< Treal, Treal >::syAssignFrobNormsLowestLevel | ( | Matrix< Treal, Matrix< Treal, Treal > > const & | A | ) |
Version of assignFrobNormsLowestLevelToMatrix for symmetric matrices.
void mat::Matrix< Treal, Treal >::syAssignFromSparse | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > const & | values ) |
void mat::Matrix< Treal >::syAssignFromSparse | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > const & | values ) |
References mat::MatrixHierarchicBase< Treal, Telement >::assert(), and assignFromSparse().
|
inline |
|
inline |
References mat::Matrix< Treal, Telement >::syFrobSquared(), and template_blas_sqrt().
|
inlinestatic |
References A, B, Matrix(), mat::Matrix< Treal, Telement >::syFrobSquaredDiff(), and template_blas_sqrt().
|
inlinestatic |
Treal mat::Matrix< Treal, Treal >::syFrobSquared | ( | ) | const |
Treal mat::Matrix< Treal >::syFrobSquared | ( | ) | const |
References mat::MatrixHierarchicBase< Treal, Telement >::assert(), mat::MatrixHierarchicBase< Treal, Telement >::col, mat::MatrixHierarchicBase< Treal, Telement >::is_empty(), mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), mat::MatrixHierarchicBase< Treal, Telement >::ncols(), and mat::MatrixHierarchicBase< Treal, Telement >::nrows().
|
static |
|
static |
void mat::Matrix< Treal, Treal >::syFullMatrix | ( | std::vector< Treal > & | fullMat | ) | const |
void mat::Matrix< Treal >::syFullMatrix | ( | std::vector< Treal > & | fullMat | ) | const |
References mat::MatrixHierarchicBase< Treal, Telement >::col, mat::MatrixHierarchicBase< Treal, Telement >::cols, mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), mat::MatrixHierarchicBase< Treal, Telement >::ncols(), mat::MatrixHierarchicBase< Treal, Telement >::nScalarsCols(), and mat::MatrixHierarchicBase< Treal, Telement >::rows.
void mat::Matrix< Treal, Treal >::syGetAllValues | ( | std::vector< int > & | rowind, |
std::vector< int > & | colind, | ||
std::vector< Treal > & | values ) const |
void mat::Matrix< Treal >::syGetAllValues | ( | std::vector< int > & | rowind, |
std::vector< int > & | colind, | ||
std::vector< Treal > & | values ) const |
References mat::MatrixHierarchicBase< Treal, Telement >::assert(), mat::MatrixHierarchicBase< Treal, Telement >::col, mat::MatrixHierarchicBase< Treal, Telement >::cols, mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), mat::MatrixHierarchicBase< Treal, Telement >::ncols(), and mat::MatrixHierarchicBase< Treal, Telement >::rows.
void mat::Matrix< Treal, Treal >::syGetValues | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > & | values ) const |
void mat::Matrix< Treal >::syGetValues | ( | std::vector< int > const & | rowind, |
std::vector< int > const & | colind, | ||
std::vector< Treal > & | values ) const |
References mat::MatrixHierarchicBase< Treal, Telement >::assert(), and getValues().
|
inlinestatic |
References A, inch(), mat::left, Matrix(), and mat::unstable.
|
static |
|
static |
References A, mat::Matrix< Treal, Telement >::allocate(), mat::MatrixHierarchicBase< Treal, Telement >::assert(), B, mat::MatrixHierarchicBase< Treal, Telement >::elements, mat::MatrixHierarchicBase< Treal, Telement >::is_empty(), mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), Matrix(), mat::MatrixHierarchicBase< Treal, Telement >::ncols(), mat::MatrixHierarchicBase< Treal, Telement >::nrows(), mat::MatrixHierarchicBase< Treal, Telement >::resetCols(), mat::MatrixHierarchicBase< Treal, Telement >::resetRows(), and mat::symm().
|
static |
void mat::Matrix< Treal, Treal >::symToNosym | ( | ) |
void mat::Matrix< Treal >::symToNosym | ( | ) |
void mat::Matrix< Treal, Treal >::syRandom | ( | ) |
void mat::Matrix< Treal >::syRandom | ( | ) |
void mat::Matrix< Treal, Treal >::syRandomZeroStructure | ( | Treal | probabilityBeingZero | ) |
void mat::Matrix< Treal >::syRandomZeroStructure | ( | Treal | probabilityBeingZero | ) |
References clear(), mat::MatrixHierarchicBase< Treal, Telement >::highestLevel(), and syRandom().
|
static |
References A, mat::Matrix< Treal, Telement >::allocate(), mat::MatrixHierarchicBase< Treal, Telement >::assert(), mat::MatrixHierarchicBase< Treal, Telement >::elements, mat::MatrixHierarchicBase< Treal, Telement >::is_empty(), mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), Matrix(), mat::MatrixHierarchicBase< Treal, Telement >::ncols(), mat::MatrixHierarchicBase< Treal, Telement >::nrows(), mat::MatrixHierarchicBase< Treal, Telement >::resetCols(), mat::MatrixHierarchicBase< Treal, Telement >::resetRows(), and mat::syrk().
|
static |
void mat::Matrix< Treal, Treal >::sySetElementsByRule | ( | TRule & | rule | ) |
void mat::Matrix< Treal >::sySetElementsByRule | ( | TRule & | rule | ) |
|
static |
References A, mat::MatrixHierarchicBase< Treal, Telement >::assert(), mat::MatrixHierarchicBase< Treal, Telement >::is_empty(), Matrix(), mat::MatrixHierarchicBase< Treal, Telement >::resetCols(), mat::MatrixHierarchicBase< Treal, Telement >::resetRows(), mat::Matrix< Treal, Telement >::symToNosym(), and mat::Matrix< Treal, Telement >::syrk().
|
static |
|
static |
References A, Matrix(), and mat::Matrix< Treal, Telement >::trmm().
|
static |
void mat::Matrix< Treal, Treal >::syUpTriFullMatrix | ( | std::vector< Treal > & | fullMat | ) | const |
void mat::Matrix< Treal >::syUpTriFullMatrix | ( | std::vector< Treal > & | fullMat | ) | const |
References mat::MatrixHierarchicBase< Treal, Telement >::col, mat::MatrixHierarchicBase< Treal, Telement >::cols, mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), mat::MatrixHierarchicBase< Treal, Telement >::ncols(), mat::MatrixHierarchicBase< Treal, Telement >::nrows(), mat::MatrixHierarchicBase< Treal, Telement >::nScalarsCols(), mat::MatrixHierarchicBase< Treal, Telement >::nScalarsRows(), and mat::MatrixHierarchicBase< Treal, Telement >::rows.
Treal mat::Matrix< Treal, Treal >::trace | ( | ) | const |
Treal mat::Matrix< Treal >::trace | ( | ) | const |
|
static |
References A, mat::MatrixHierarchicBase< Treal, Telement >::assert(), B, and Matrix().
|
static |
|
static |
References A, mat::MatrixHierarchicBase< Treal, Telement >::assert(), B, and Matrix().
|
static |
|
static |
References A, mat::allocateElements(), mat::MatrixHierarchicBase< Treal, Telement >::col, mat::MatrixHierarchicBase< Treal, Telement >::cols, mat::MatrixHierarchicBase< Treal, Telement >::elements, mat::freeElements(), mat::MatrixHierarchicBase< Treal, Telement >::is_zero(), Matrix(), mat::MatrixHierarchicBase< Treal, Telement >::ncols(), mat::MatrixHierarchicBase< Treal, Telement >::nElements(), mat::MatrixHierarchicBase< Treal, Telement >::nrows(), and mat::MatrixHierarchicBase< Treal, Telement >::rows.
|
static |
|
static |
References A, mat::MatrixHierarchicBase< Treal, Telement >::assert(), B, Matrix(), and mat::trmm().
|
static |
|
static |
|
inline |
|
static |
|
static |
|
inline |
void mat::Matrix< Treal, Treal >::truncateAccordingToSparsityPattern | ( | Matrix< Treal, Matrix< Treal, Treal > > & | A | ) | const |
Truncate matrix A according to the sparsity pattern of the this matrix (frobNormMat).
void mat::Matrix< Treal, Treal >::writeToFile | ( | std::ofstream & | file | ) | const |
void mat::Matrix< Treal >::writeToFile | ( | std::ofstream & | file | ) | const |
|
friend |
|
friend |
|
staticprivate |
Referenced by readFromFile(), and writeToFile().
|
staticprivate |
Referenced by readFromFile(), and writeToFile().