#include <ixlib_matrix.hh>
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 |
| |
TSize | getHeight () const |
| |
matrix | getTransposed () const |
| |
matrix | getInverted () const |
| |
matrix | getGaussElim (scalar_type pivot_threshold=0, TSize *swapcount=NULL) const |
| |
matrix | getGaussJordan (scalar_type pivot_threshold=0, TSize *swapcount=NULL) const |
| |
matrix | getCholesky () const |
| |
void | getLR (matrix &l, matrix &r) const |
| |
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 |
|
Definition at line 59 of file ixlib_matrix.hh. |
|
Definition at line 56 of file ixlib_matrix.hh. |
|
Definition at line 58 of file ixlib_matrix.hh. |
|
Definition at line 57 of file ixlib_matrix.hh. |
|
Definition at line 55 of file ixlib_matrix.hh. |
|
Definition at line 154 of file ixlib_matrix.hh. |
|
|
|
Definition at line 246 of file ixlib_matrix.hh. |
|
|
|
Referenced by addColumn(), and addRow().
|
|
Definition at line 143 of file ixlib_matrix.hh. |
|
|
|
Definition at line 140 of file ixlib_matrix.hh. |
|
|
|
Definition at line 106 of file ixlib_matrix.hh. |
|
Definition at line 103 of file ixlib_matrix.hh. Referenced by matrix().
|
|
Referenced by getCholesky().
|
|
Referenced by getLR().
|
|
|
|
|
|
Definition at line 112 of file ixlib_matrix.hh. |
|
Definition at line 109 of file ixlib_matrix.hh. |
|
Referenced by extractColumn(), and extractRow().
|
|
Definition at line 127 of file ixlib_matrix.hh. |
|
Definition at line 124 of file ixlib_matrix.hh. Referenced by operator()().
|
|
Referenced by getGaussElim().
|
|
Referenced by getGaussJordan().
|
|
Definition at line 208 of file ixlib_matrix.hh. |
|
Definition at line 200 of file ixlib_matrix.hh. |
|
Definition at line 204 of file ixlib_matrix.hh. |
|
Definition at line 188 of file ixlib_matrix.hh. |
|
Definition at line 221 of file ixlib_matrix.hh. Referenced by operator()().
|
|
Definition at line 196 of file ixlib_matrix.hh. |
|
Definition at line 212 of file ixlib_matrix.hh. |
|
Definition at line 218 of file ixlib_matrix.hh. Referenced by end(), and matrix().
|
|
Definition at line 192 of file ixlib_matrix.hh. |
|
Definition at line 184 of file ixlib_matrix.hh. |
|
Definition at line 119 of file ixlib_matrix.hh. |
|
Referenced by getInverted().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 70 of file ixlib_matrix.hh. |
|
Definition at line 99 of file ixlib_matrix.hh. |
|
Definition at line 96 of file ixlib_matrix.hh. |
|
Definition at line 93 of file ixlib_matrix.hh. |
|
Definition at line 81 of file ixlib_matrix.hh. |
|
|
|
Definition at line 86 of file ixlib_matrix.hh. |
|
Definition at line 76 of file ixlib_matrix.hh. |
|
|
|
Referenced by operator *=().
|
|
Referenced by operator<<().
|
|
Referenced by setColumn(), and setRow().
|
|
Definition at line 135 of file ixlib_matrix.hh. |
|
Referenced by operator>>().
|
|
Definition at line 132 of file ixlib_matrix.hh. |
|
Referenced by matrix().
|
|
|
|
|
|
|
|
Referenced by getTransposed().
|
|
|
|
Definition at line 116 of file ixlib_matrix.hh. |
|
|
|
Definition at line 52 of file ixlib_matrix.hh. |
|
Definition at line 51 of file ixlib_matrix.hh. |
|
Definition at line 51 of file ixlib_matrix.hh. |