|
| SNmatrix () |
|
| SNmatrix (const SNmatrix< T, tp_size > &) |
|
| SNmatrix (const SNgeneric< T, tp_size > &) |
|
| SNmatrix (const T &x) |
|
T | max_norm () const |
|
SNelement< T, tp_size > | getElement (m_num line, m_num col) const |
|
void | swapLines (m_num l1, m_num l2) |
| swap the lines l1 and l2 . More...
|
|
SNplu< T, tp_size > | getPLU () const |
|
virtual unsigned int | getSize () const final |
|
virtual T & | at (const m_num, const m_num) final |
|
virtual T | get (const m_num, const m_num) const final |
|
virtual SNline< T, tp_size > | getSNline (m_num l) const |
|
template<class V , unsigned int s> |
void | subtract (const SNgeneric< V, s > &) |
|
template<class V , unsigned int s> |
void | subtract (const SNgaussian< V, s > &) |
|
SNgaussian< T, tp_size > | getGaussian (const m_num c) const |
|
template<class V , unsigned int s> |
bool | isNumericallyEqual (const SNgeneric< V, s > &A, const double &epsilon) const |
|
|
template<class U , unsigned int s, class V , unsigned int t> |
bool | operator== (const SNmatrix< U, s > &, const SNmatrix< V, t > &) |
|
template<class U , unsigned int s, class V , unsigned int t> |
SNmatrix< U, s > | operator+ (const SNmatrix< U, s > &A, const SNmatrix< V, t > &B) |
|
std::array< T, tp_size *tp_size > | SNupperTriangular (const SNmatrix< T, tp_size > &) const |
|
std::array< T, tp_size *tp_size > | SNlowerTriangular (const SNmatrix< T, tp_size > &) const |
|
template<class T, unsigned int tp_size>
class SNmatrix< T, tp_size >
Represent a square numerical matrix.
This is a template class that represents a fixed size square numerical matrix (SN=Square Numerical).
template <class T,unsigned int tp_size>
T
is the type of values contained in the matrix. This is expected to be a numeric type in the sense that it has to accept comparison, absolute value (from cmath) and other operations like that.
tp_size
is the size of the matrix.
NOTE : if you want the identity matrix, there is the SNidentity
class.
For creating a matrix knowing its elements, be best way is to do something like
Notice that the elements are numbered from 0
to tp_size-1
. Not from 1
.