ergo
|
#include <TestMatrix.h>
Public Types | |
typedef Treal | real |
Public Member Functions | |
TestMatrix () | |
~TestMatrix () | |
TestMatrix (TestMatrix< real > const &other) | |
TestMatrix< real > & | operator= (TestMatrix< real > const &other) |
TestMatrix (int const n, real const *const elem) | |
void | get_diag (real *elem) const |
real | thresh (real chosen_thresh, mat::normType normTruncation) |
TestMatrix< real > & | operator*= (real const alpha) |
void | add_identity (real const alpha) |
TestMatrix< real > & | operator= (mat::XYZ< real, TestMatrix< real >, TestMatrix< real > > const &sm2) |
TestMatrix< real > & | operator+= (mat::XY< real, TestMatrix< real > > const &sm) |
real | trace () const |
void | transfer (TestMatrix< real > &dest) |
real | min () const |
real | max () const |
size_t | nnz () const |
int | get_nrows () const |
Static Public Member Functions | |
static mat::Interval< real > | diffIfSmall (TestMatrix< real > const &A, TestMatrix< real > const &B, mat::normType const norm, real const reqAcc, real const maxAbsVal) |
static real | mixed_diff (TestMatrix< real > const &A, TestMatrix< real > const &B, real const reqAcc) |
Private Attributes | |
real * | elements |
int | n |
typedef Treal TestMatrix< Treal >::real |
|
inline |
|
inline |
References TestMatrix< Treal >::elements.
TestMatrix< Treal >::TestMatrix | ( | TestMatrix< real > const & | other | ) |
References TestMatrix< Treal >::elements, and TestMatrix< Treal >::n.
TestMatrix< Treal >::TestMatrix | ( | int const | n, |
real const *const | elem | ||
) |
References TestMatrix< Treal >::elements, and TestMatrix< Treal >::n.
void TestMatrix< Treal >::add_identity | ( | real const | alpha | ) |
|
static |
References TestMatrix< Treal >::elements, and TestMatrix< Treal >::n.
void TestMatrix< Treal >::get_diag | ( | real * | elem | ) | const |
Referenced by main().
|
inline |
References TestMatrix< Treal >::n.
|
inline |
References TestMatrix< Treal >::elements, and TestMatrix< Treal >::n.
Referenced by main().
|
inline |
References TestMatrix< Treal >::elements, and TestMatrix< Treal >::n.
Referenced by main().
|
static |
References TestMatrix< Treal >::elements, and TestMatrix< Treal >::n.
|
inline |
References TestMatrix< Treal >::n.
TestMatrix< Treal > & TestMatrix< Treal >::operator*= | ( | real const | alpha | ) |
TestMatrix< Treal > & TestMatrix< Treal >::operator+= | ( | mat::XY< real, TestMatrix< real > > const & | sm | ) |
TestMatrix< Treal > & TestMatrix< Treal >::operator= | ( | TestMatrix< real > const & | other | ) |
References TestMatrix< Treal >::elements, and TestMatrix< Treal >::n.
TestMatrix< Treal > & TestMatrix< Treal >::operator= | ( | mat::XYZ< real, TestMatrix< real >, TestMatrix< real > > const & | sm2 | ) |
Treal TestMatrix< Treal >::thresh | ( | real | chosen_thresh, |
mat::normType | normTruncation | ||
) |
Treal TestMatrix< Treal >::trace | ( | ) | const |
void TestMatrix< Treal >::transfer | ( | TestMatrix< real > & | dest | ) |
References TestMatrix< Treal >::elements, and TestMatrix< Treal >::n.
|
private |
|
private |
Referenced by TestMatrix< Treal >::diffIfSmall(), TestMatrix< Treal >::get_nrows(), TestMatrix< Treal >::max(), TestMatrix< Treal >::min(), TestMatrix< Treal >::mixed_diff(), TestMatrix< Treal >::nnz(), TestMatrix< Treal >::operator=(), TestMatrix< Treal >::TestMatrix(), and TestMatrix< Treal >::transfer().