Public Types |
typedef Traits | traits_type |
typedef traits_type::number_type | entry_type |
typedef traits_type::scalar_type | scalar_type |
typedef T* | iterator |
typedef T const* | const_iterator |
enum | TMatrixNorm { NORM_TOTAL,
NORM_ROW_SUM,
NORM_COLUMN_SUM,
NORM_SCHUR
} |
Public Methods |
| matrix (TSize height=0, TSize width=0) |
template<class InputIterator> | matrix (TSize height, TSize width, InputIterator first) |
| matrix (matrix const &src) |
matrix& | operator= (matrix const &src) |
matrix& | operator+= (matrix const &op2) |
matrix& | operator-= (matrix const &op2) |
matrix& | operator *= (matrix const &op2) |
matrix& | operator *= (scalar_type scalar) |
matrix | operator- () const |
matrix | operator+ (matrix const &op2) const |
matrix | operator- (matrix const &op2) const |
matrix | operator * (matrix const &op2) const |
matrix | operator() (TIndex row) const |
entry_type& | operator() (TIndex row, TIndex col) |
entry_type | operator() (TIndex row, TIndex col) const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
TSize | width () const |
TSize | height () const |
matrix | extract (TIndex row, TIndex col, TSize height, TSize width) const |
matrix | extractRow (TIndex row) const |
matrix | extractColumn (TIndex col) const |
matrix& | set (TIndex row, TIndex col, matrix const &src) |
matrix& | setRow (TIndex row, matrix const &src) |
matrix& | setColumn (TIndex col, matrix const &src) |
matrix& | add (TIndex row, TIndex col, matrix const &src, entry_type factor=1) |
matrix& | addRow (TIndex row, matrix &src, entry_type factor=1) |
matrix& | addColumn (TIndex col, matrix &src, entry_type factor=1) |
matrix& | addRowSelf (TIndex to, TIndex from, entry_type factor=1, TIndex startcol=0) |
matrix& | addColumnSelf (TIndex to, TIndex from, entry_type factor=1, TIndex startrow=0) |
matrix& | multiplyRowSelf (TIndex row, entry_type factor, TIndex startcol=0) |
matrix& | multiplyColumnSelf (TIndex column, entry_type factor, TIndex startrow=0) |
matrix& | swapRowSelf (TIndex row1, TIndex row2) |
matrix& | swapColumnSelf (TIndex col1, TIndex col2) |
entry_type | norm (TMatrixNorm norm=NORM_SCHUR) const |
entry_type | det () const |
entry_type | trace () const |
entry_type | diagonalProduct () const |
matrix | transposed () const |
matrix | inverted () const |
matrix | gauss (scalar_type pivot_threshold=0, TSize *swapcount=NULL) const |
matrix | gaussJordan (scalar_type pivot_threshold=0, TSize *swapcount=NULL) const |
matrix | linearSolve (matrix const &vec, scalar_type pivot_threshold=0) const |
matrix | cholesky () const |
void | decomposeLR (matrix &l, matrix &r) const |
matrix& | normalize () |
matrix | upperTriangleSolve (matrix const &vec) const |
matrix | lowerTriangleSolve (matrix const &vec) const |
void | wipe (entry_type value=traits_type::zero) |
void | setDimension (TSize height, TSize width) |
void | outMatrix (std::ostream &ostr, void(*item_formatter)(std::ostream &os, bool first, bool last)=NULL) const |
TSize | getWidth () const |
| -
Deprecated:
-
use width() instead.
|
TSize | getHeight () const |
| -
Deprecated:
-
use height() instead.
|
matrix | getTransposed () const |
| -
Deprecated:
-
use transpose() instead.
|
matrix | getInverted () const |
| -
Deprecated:
-
use invert() instead.
|
matrix | getGaussElim (scalar_type pivot_threshold=0, TSize *swapcount=NULL) const |
| -
Deprecated:
-
use gauss() instead.
|
matrix | getGaussJordan (scalar_type pivot_threshold=0, TSize *swapcount=NULL) const |
| -
Deprecated:
-
use gaussJordan() instead.
|
matrix | getCholesky () const |
| -
Deprecated:
-
use cholesky() instead.
|
void | getLR (matrix &l, matrix &r) const |
| -
Deprecated:
-
use decomposeLR() instead.
|
Protected Methods |
void | setup (TSize height, TSize width) |
TSize | getSize () const |
TIndex | getIndex (TIndex row, TIndex col) const |
Protected Attributes |
TSize | Height |
TSize | Width |
auto_array<T> | Data |