#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 |
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 | getWidth () const |
TSize | getHeight () 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 | det () const |
entry_type | getVectorNorm (int index=2) const |
entry_type | trace () const |
entry_type | diagonalProduct () 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 | linearSolve (matrix const &vec, scalar_type pivot_threshold=0) const |
matrix | getCholesky () const |
void | getLR (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 (ostream &ostr, void(*item_formatter)(ostream &os, bool first, bool last)=NULL) const |
Static Public Attributes | |
const int | infty = -1 |
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 58 of file ixlib_matrix.hh. |
|
Definition at line 55 of file ixlib_matrix.hh. |
|
Definition at line 57 of file ixlib_matrix.hh. |
|
Definition at line 56 of file ixlib_matrix.hh. |
|
Definition at line 54 of file ixlib_matrix.hh. |
|
|
|
Definition at line 207 of file ixlib_matrix.hh. |
|
|
|
|
|
Definition at line 142 of file ixlib_matrix.hh. |
|
|
|
Definition at line 139 of file ixlib_matrix.hh. |
|
|
|
Definition at line 105 of file ixlib_matrix.hh. |
|
Definition at line 102 of file ixlib_matrix.hh. Referenced by matrix(). |
|
|
|
|
|
Definition at line 111 of file ixlib_matrix.hh. |
|
Definition at line 108 of file ixlib_matrix.hh. |
|
Referenced by extractColumn(), and extractRow(). |
|
Definition at line 126 of file ixlib_matrix.hh. |
|
Definition at line 123 of file ixlib_matrix.hh. Referenced by operator()(). |
|
|
|
|
|
|
|
Definition at line 118 of file ixlib_matrix.hh. |
|
Definition at line 182 of file ixlib_matrix.hh. Referenced by operator()(). |
|
|
|
|
|
Definition at line 179 of file ixlib_matrix.hh. |
|
|
|
|
|
Definition at line 115 of file ixlib_matrix.hh. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 69 of file ixlib_matrix.hh. |
|
Definition at line 98 of file ixlib_matrix.hh. |
|
Definition at line 95 of file ixlib_matrix.hh. |
|
Definition at line 92 of file ixlib_matrix.hh. |
|
Definition at line 80 of file ixlib_matrix.hh. |
|
|
|
Definition at line 85 of file ixlib_matrix.hh. |
|
Definition at line 75 of file ixlib_matrix.hh. |
|
|
|
Referenced by operator *=(). |
|
|
|
|
|
Definition at line 134 of file ixlib_matrix.hh. |
|
Referenced by operator>>(). |
|
Definition at line 131 of file ixlib_matrix.hh. |
|
Referenced by matrix(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 51 of file ixlib_matrix.hh. |
|
Definition at line 50 of file ixlib_matrix.hh. |
|
Definition at line 50 of file ixlib_matrix.hh. |
|
Definition at line 153 of file ixlib_matrix.hh. |