ergo
TestMatrix< Treal > Class Template Reference

#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< realdiffIfSmall (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

realelements
 
int n
 

Member Typedef Documentation

◆ real

template<typename Treal>
typedef Treal TestMatrix< Treal >::real

Constructor & Destructor Documentation

◆ TestMatrix() [1/3]

template<typename Treal>
TestMatrix< Treal >::TestMatrix ( )
inline

◆ ~TestMatrix()

◆ TestMatrix() [2/3]

template<typename Treal >
TestMatrix< Treal >::TestMatrix ( TestMatrix< real > const &  other)

◆ TestMatrix() [3/3]

template<typename Treal >
TestMatrix< Treal >::TestMatrix ( int const  n,
real const *const  elem 
)

Member Function Documentation

◆ add_identity()

template<typename Treal >
void TestMatrix< Treal >::add_identity ( real const  alpha)

◆ diffIfSmall()

template<typename Treal >
mat::Interval< Treal > TestMatrix< Treal >::diffIfSmall ( TestMatrix< real > const &  A,
TestMatrix< real > const &  B,
mat::normType const  norm,
real const  reqAcc,
real const  maxAbsVal 
)
static

◆ get_diag()

template<typename Treal >
void TestMatrix< Treal >::get_diag ( real elem) const

◆ get_nrows()

template<typename Treal>
int TestMatrix< Treal >::get_nrows ( ) const
inline

◆ max()

template<typename Treal>
real TestMatrix< Treal >::max ( ) const
inline

◆ min()

template<typename Treal>
real TestMatrix< Treal >::min ( ) const
inline

◆ mixed_diff()

template<typename Treal >
Treal TestMatrix< Treal >::mixed_diff ( TestMatrix< real > const &  A,
TestMatrix< real > const &  B,
real const  reqAcc 
)
static

◆ nnz()

template<typename Treal>
size_t TestMatrix< Treal >::nnz ( ) const
inline

◆ operator*=()

template<typename Treal >
TestMatrix< Treal > & TestMatrix< Treal >::operator*= ( real const  alpha)

◆ operator+=()

template<typename Treal >
TestMatrix< Treal > & TestMatrix< Treal >::operator+= ( mat::XY< real, TestMatrix< real > > const &  sm)

◆ operator=() [1/2]

template<typename Treal >
TestMatrix< Treal > & TestMatrix< Treal >::operator= ( TestMatrix< real > const &  other)

◆ operator=() [2/2]

template<typename Treal >
TestMatrix< Treal > & TestMatrix< Treal >::operator= ( mat::XYZ< real, TestMatrix< real >, TestMatrix< real > > const &  sm2)

◆ thresh()

template<typename Treal >
Treal TestMatrix< Treal >::thresh ( real  chosen_thresh,
mat::normType  normTruncation 
)

◆ trace()

template<typename Treal >
Treal TestMatrix< Treal >::trace ( ) const

◆ transfer()

template<typename Treal >
void TestMatrix< Treal >::transfer ( TestMatrix< real > &  dest)

Member Data Documentation

◆ elements

◆ n


The documentation for this class was generated from the following file: