#include <Mat.h>
Inheritance diagram for exmat::Mat< Rep, ErrChecker_ >:
Assignment operators | |
CommaInitializer< self_type > | operator= (const_param_type s) |
template<class Rep2, class ErrChk2> | |
Mat & | AssignNoAna (const Mat< Rep2, ErrChk2 > &A) |
Assignment from expression without any analyzer. | |
template<class Rep2, class ErrChk2> | |
Mat & | operator= (const Mat< Rep2, ErrChk2 > &A) |
Assignment operator for Mat of different type. | |
Mat & | operator= (const self_type &A) |
Assignment operator for Mat of the same type. | |
template<class Res, class Exp> | |
static void | AssignDispatcher (Res &res, const Exp &exp) |
Default function for Mat assignment, it can be overloaded by template specialization. | |
Comparison operators | |
template<class Rep2, class ErrChk2> | |
bool | operator!= (const Mat< Rep2, ErrChk2 > &A) const |
template<class Rep2, class ErrChk2> | |
bool | operator== (const Mat< Rep2, ErrChk2 > &A) const |
bool | operator!= (const value_type &s) const |
bool | operator== (const value_type &s) const |
bool | operator!= (const value_type &lhs, const self_type &rhs) |
bool | operator== (const value_type &lhs, const self_type &rhs) |
Public Member Functions | |
Mat () | |
Empty constructor. | |
template<class Rep2, class ErrChk2> | |
Mat (const Mat< Rep2, ErrChk2 > &A, typename DisableIf_c< IsDerivedFrom< Rep, ViewTag >::RET &&_AlwaysTrue< Rep2 >::RET >::RET *dummy=NULL) | |
Mat (const std::string &s) | |
Special constructor for constructing the Mat from a view. | |
Mat (const_param_type s) | |
Forward the scalar construction to the rep_type. | |
template<class Rep2> | |
Mat (ExpMat< Rep2 > &A) | |
Construct the Mat from an expression. | |
template<class Rep2> | |
Mat (const ExpMat< Rep2 > &A) | |
Construct the Mat from an expression. | |
template<class T1, class T2> | |
Mat (T1 &t1, T2 &t2) | |
Generic constructor, which forward the initialization to rep_type. | |
template<class T1, class T2, class T3> | |
Mat (T1 &t1, T2 &t2, T3 &t3) | |
Generic constructor, which forward the initialization to rep_type. | |
template<class T1, class T2, class T3, class T4> | |
Mat (T1 &t1, T2 &t2, T3 &t3, T4 &t4) | |
Generic constructor, which forward the initialization to rep_type. | |
template<class T1, class T2, class T3, class T4, class T5> | |
Mat (T1 &t1, T2 &t2, T3 &t3, T4 &t4, T5 &t5) | |
Generic constructor, which forward the initialization to rep_type. | |
template<class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9> | |
Mat (T1 &t1, T2 &t2, T3 &t3, T4 &t4, T5 &t5, T6 &t6, T7 &t7, T8 &t8, T9 &t9) | |
Generic constructor, which forward the initialization to rep_type. | |
template<class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10, class T11, class T12, class T13, class T14, class T15, class T16> | |
Mat (T1 &t1, T2 &t2, T3 &t3, T4 &t4, T5 &t5, T6 &t6, T7 &t7, T8 &t8, T9 &t9, T10 t10, T11 &t11, T12 &t12, T13 &t13, T14 &t14, T15 &t15, T16 &t16) | |
Generic constructor, which forward the initialization to rep_type. | |
template<class T1, class T2> | |
Mat (const T1 &t1, const T2 &t2) | |
Generic constructor, which forward the initialization to rep_type. | |
template<class T1, class T2, class T3> | |
Mat (const T1 &t1, const T2 &t2, const T3 &t3) | |
Generic constructor, which forward the initialization to rep_type. | |
template<class T1, class T2, class T3, class T4> | |
Mat (const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4) | |
Generic constructor, which forward the initialization to rep_type. | |
template<class T1, class T2, class T3, class T4, class T5> | |
Mat (const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5) | |
Generic constructor, which forward the initialization to rep_type. | |
Mat (const Dim &d) | |
Forward the Dimension construction to the rep_type. | |
Mat (const Dim &d1, const Dim &d2, const_param_type s) | |
Forward the Dimension construction to the rep_type. | |
Index operators | |
To access individual element | |
reference | operator() (index_type r, index_type c) |
const_reference | operator() (index_type r, index_type c) const |
Index operators | |
To access individual row | |
row_type | operator[] (index_type r) |
const_row_type | operator[] (index_type r) const |
In-place operators | |
self_type & | operator+= (const_param_type s) |
In-place addition with scalar. | |
self_type & | operator-= (const_param_type s) |
In-place subtraction with scalar. | |
self_type & | operator *= (const_param_type s) |
In-place multiplication with scalar. | |
self_type & | operator/= (const_param_type s) |
In-place division with scalar. | |
template<class Rep2, class ErrChk2> | |
self_type & | operator+= (const Mat< Rep2, ErrChk2 > &A) |
In-place addition with matrix. | |
template<class Rep2, class ErrChk2> | |
self_type & | operator-= (const Mat< Rep2, ErrChk2 > &A) |
In-place subtraction with matrix. | |
template<class Rep2, class ErrChk2> | |
self_type & | operator *= (const Mat< Rep2, ErrChk2 > &A) |
In-place multiplication with matrix. | |
Index get/set functions | |
for internal use, no error checking applied. Should be protected functions, but have to make many friend class... | |
reference | setAt (index_type i) |
const_reference | getAt (index_type i) const |
reference | setAt (index_type r, index_type c) |
const_reference | getAt (index_type r, index_type c) const |
This is the core class over the whole exmat library
|
Construct the Mat from another type of Mat. |
|
Special constructor for constructing the Mat from a view. Construct the matrix from a string
|
|
The not equal operator.
|
|
The not equal operator.
|
|
Index operator returning an element (for external use)
|
|
Index operator returning an element (for external use)
|
|
Assignment operator for use with CommaInitializer
Reimplemented in exmat::Vec< Rep, ErrChecker_ >. |
|
The equal operator.
|
|
The equal operator.
|
|
Index operator returning a row (for external use)
Reimplemented in exmat::Vec< Rep, ErrChecker_ >. |
|
Index operator returning a row (for external use)
Reimplemented in exmat::Vec< Rep, ErrChecker_ >. |
|
The not equal operator.
|
|
The not equal operator.
|