#include <crmatrix.h>


Public Types | |
| typedef T | value_type |
| typedef T | element_type |
| typedef T | aligned_value_type |
Public Member Functions | |
| CRMatrix () | |
| CRMatrix (unsigned int rows, unsigned int columns) | |
| CRMatrix (const CRMatrix< T > &m) | |
| CRMatrix (const Matrix< T > &mat) | |
| ~CRMatrix () | |
| CRMatrix< T > & | clear () |
| set all elements defined to zero | |
| CRMatrix< T > & | fill (const T &) |
| set all defined element to a val | |
| CRMatrix< T > & | setunit (const T &=(T) 1) |
| set CSCMatrix to val times the unit matrix | |
| const T & | operator() (unsigned int row, unsigned int column) const |
| element access (read) | |
| const T & | get (unsigned int row, unsigned int column) const |
| CRMatrix< T > & | setval (const T &z, unsigned int row, unsigned int column) |
| element access (write) | |
| T & | setval (unsigned int row, unsigned int column) |
| T & | operator() (unsigned int row, unsigned int column) |
| TVector< T > | get_row (unsigned int row) const |
| void | set_row (const Vector< T > &v, unsigned int row) |
| void | set_row (const TVector< T > &tv, unsigned int row) |
| void | set_row (const TSVector< T > &tsv, unsigned int row) |
| void | set_row (T *value, unsigned int row, unsigned int count, unsigned int *index) |
| unsigned int | rows () const |
| unsigned int | columns () const |
| unsigned int | size () const |
| void | resize (unsigned int newRows, unsigned int newColumns) |
| CRMatrix< T > & | operator= (const CRMatrix< T > &m) |
| bool | operator== (const CRMatrix< T > &m) const |
| bool | operator!= (const CRMatrix< T > &m) const |
| CRMatrix< T > | operator- () const |
| TVector< T > | operator* (const Vector< T > &v) const |
| TVector< T > | operator* (const TVector< T > &tv) const |
| TVector< T > | operator* (TSVector< T > &tsv) const |
| void | MatVecMult (Vector< T > &res, const Vector< T > &v) const |
| void | MatVecMult (T *v, T *res) |
| TVector< T > | transMult (const Vector< T > &v) const |
| TVector< T > | transMult (const TVector< T > &tv) const |
| TVector< T > | transMult (const TSVector< T > &tsv) const |
| CRMatrix< T > | operator* (const T &z) const |
| CRMatrix< T > & | operator*= (const T &z) |
| CRMatrix< T > | operator/ (const T &z) const |
| CRMatrix< T > & | operator/= (const T &z) |
| CRMatrix< T > | mult (const T &z) const |
| CRMatrix< T > & | swap (CRMatrix< T > &) |
| CRMatrix< T > | transposed_copy () const |
| Inefficient! Use transMult if possible. | |
| CRMatrix< T > & | transpose () |
Static Public Member Functions | |
| static const char * | mat_info () |
Protected Member Functions | |
| void | allocate (unsigned int rows, unsigned int columns) |
| void | destroy () |
| void | copy (const CRMatrix< T > &m) |
Protected Attributes | |
| unsigned int | n_rows |
| unsigned int | n_cols |
| unsigned int * | rowSize |
| unsigned int ** | colIndex |
| T ** | comp |
| T | dummy |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const CRMatrix< T > &m) |
Definition at line 63 of file crmatrix.h.
| typedef T TBCI::CRMatrix< T >::value_type |
Definition at line 79 of file crmatrix.h.
| typedef T TBCI::CRMatrix< T >::element_type |
Definition at line 80 of file crmatrix.h.
| typedef T TBCI::CRMatrix< T >::aligned_value_type |
Definition at line 81 of file crmatrix.h.
| TBCI::CRMatrix< T >::CRMatrix | ( | ) | [inline] |
Definition at line 83 of file crmatrix.h.
| TBCI::CRMatrix< T >::CRMatrix | ( | unsigned int | rows, | |
| unsigned int | columns | |||
| ) | [inline] |
Definition at line 84 of file crmatrix.h.
| TBCI::CRMatrix< T >::CRMatrix | ( | const CRMatrix< T > & | m | ) | [inline] |
Definition at line 85 of file crmatrix.h.
| TBCI::CRMatrix< T >::CRMatrix | ( | const Matrix< T > & | mat | ) | [inline] |
Definition at line 171 of file crmatrix.h.
References TBCI::CRMatrix< T >::allocate(), TBCI::CRMatrix< T >::n_cols, and TBCI::CRMatrix< T >::n_rows.
| TBCI::CRMatrix< T >::~CRMatrix | ( | ) | [inline] |
Definition at line 87 of file crmatrix.h.
| void TBCI::CRMatrix< T >::allocate | ( | unsigned int | rows, | |
| unsigned int | columns | |||
| ) | [inline, protected] |
Definition at line 647 of file crmatrix.h.
References BCHKNR, TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::dummy, TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, NULL, TBCI::CRMatrix< T >::rowSize, and T.
Referenced by TBCI::CRMatrix< T >::CRMatrix(), and TBCI::CRMatrix< T >::resize().
| void TBCI::CRMatrix< T >::destroy | ( | ) | [inline, protected] |
Definition at line 669 of file crmatrix.h.
References TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_rows, NULL, and TBCI::CRMatrix< T >::rowSize.
Referenced by TBCI::CRMatrix< T >::operator=(), and TBCI::CRMatrix< T >::resize().
| void TBCI::CRMatrix< T >::copy | ( | const CRMatrix< T > & | m | ) | [inline, protected] |
Definition at line 686 of file crmatrix.h.
References BCHKNR, TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::dummy, TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, NULL, TBCI::CRMatrix< T >::rowSize, and T.
Referenced by TBCI::CRMatrix< T >::operator=().
| static const char* TBCI::CRMatrix< T >::mat_info | ( | ) | [inline, static] |
| CRMatrix< T > & TBCI::CRMatrix< T >::clear | ( | ) | [inline] |
set all elements defined to zero
Reimplemented from TBCI::Matrix_Sig< T >.
Definition at line 725 of file crmatrix.h.
References TBCI::CRMatrix< T >::fill(), and T.
Referenced by TBCI::CRMatrix< T >::setunit().
| CRMatrix< T > & TBCI::CRMatrix< T >::fill | ( | const T & | val | ) | [inline] |
set all defined element to a val
Reimplemented from TBCI::Matrix_Sig< T >.
Definition at line 716 of file crmatrix.h.
References TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_rows, and TBCI::CRMatrix< T >::rowSize.
Referenced by TBCI::CRMatrix< T >::clear().
| CRMatrix< T > & TBCI::CRMatrix< T >::setunit | ( | const T & | val = (T)1 |
) | [inline] |
set CSCMatrix to val times the unit matrix
Reimplemented from TBCI::Matrix_Sig< T >.
Definition at line 729 of file crmatrix.h.
References BCHK, TBCI::CRMatrix< T >::clear(), TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, and TBCI::CRMatrix< T >::setval().
| const T & TBCI::CRMatrix< T >::operator() | ( | unsigned int | row, | |
| unsigned int | column | |||
| ) | const [inline] |
element access (read)
Definition at line 181 of file crmatrix.h.
References BCHK, TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::dummy, TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, TBCI::CRMatrix< T >::rowSize, and T.
| const T& TBCI::CRMatrix< T >::get | ( | unsigned int | row, | |
| unsigned int | column | |||
| ) | const [inline] |
Definition at line 101 of file crmatrix.h.
| CRMatrix< T > & TBCI::CRMatrix< T >::setval | ( | const T & | z, | |
| unsigned int | row, | |||
| unsigned int | column | |||
| ) | [inline] |
element access (write)
Definition at line 215 of file crmatrix.h.
References BCHK, TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, NULL, TBCI::CRMatrix< T >::rowSize, and T.
Referenced by TBCI::CRMatrix< T >::operator-(), and TBCI::CRMatrix< T >::setunit().
| T & TBCI::CRMatrix< T >::setval | ( | unsigned int | row, | |
| unsigned int | column | |||
| ) | [inline] |
Definition at line 261 of file crmatrix.h.
References BCHK, TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, NULL, TBCI::CRMatrix< T >::rowSize, and T.
| T& TBCI::CRMatrix< T >::operator() | ( | unsigned int | row, | |
| unsigned int | column | |||
| ) | [inline] |
Definition at line 106 of file crmatrix.h.
| TVector< T > TBCI::CRMatrix< T >::get_row | ( | unsigned int | row | ) | const [inline] |
Definition at line 312 of file crmatrix.h.
References BCHK, TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, and TBCI::TVector< T >::set().
| void TBCI::CRMatrix< T >::set_row | ( | const Vector< T > & | v, | |
| unsigned int | row | |||
| ) | [inline] |
Definition at line 323 of file crmatrix.h.
References BCHKNR, TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_rows, NULL, TBCI::CRMatrix< T >::rowSize, TBCI::TVector< T >::size(), and T.
Referenced by TBCI::CRMatrix< T >::set_row().
| void TBCI::CRMatrix< T >::set_row | ( | const TVector< T > & | tv, | |
| unsigned int | row | |||
| ) | [inline] |
| void TBCI::CRMatrix< T >::set_row | ( | const TSVector< T > & | tsv, | |
| unsigned int | row | |||
| ) | [inline] |
| void TBCI::CRMatrix< T >::set_row | ( | T * | value, | |
| unsigned int | row, | |||
| unsigned int | count, | |||
| unsigned int * | index | |||
| ) | [inline] |
Definition at line 377 of file crmatrix.h.
References BCHKNR, TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, NULL, TBCI::CRMatrix< T >::rowSize, and T.
| unsigned int TBCI::CRMatrix< T >::rows | ( | ) | const [inline] |
Reimplemented from TBCI::Matrix_Sig< T >.
Definition at line 118 of file crmatrix.h.
Referenced by TBCI::operator<<(), and TBCI::CRMatrix< T >::transposed_copy().
| unsigned int TBCI::CRMatrix< T >::columns | ( | ) | const [inline] |
Reimplemented from TBCI::Matrix_Sig< T >.
Definition at line 119 of file crmatrix.h.
Referenced by TBCI::operator<<(), and TBCI::CRMatrix< T >::transposed_copy().
| unsigned int TBCI::CRMatrix< T >::size | ( | ) | const [inline] |
Definition at line 193 of file crmatrix.h.
References TBCI::CRMatrix< T >::n_rows, and TBCI::CRMatrix< T >::rowSize.
| void TBCI::CRMatrix< T >::resize | ( | unsigned int | newRows, | |
| unsigned int | newColumns | |||
| ) | [inline] |
Definition at line 205 of file crmatrix.h.
References TBCI::CRMatrix< T >::allocate(), TBCI::CRMatrix< T >::destroy(), TBCI::CRMatrix< T >::n_cols, and TBCI::CRMatrix< T >::n_rows.
| CRMatrix< T > & TBCI::CRMatrix< T >::operator= | ( | const CRMatrix< T > & | m | ) | [inline] |
Definition at line 409 of file crmatrix.h.
References BCHK, TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::copy(), TBCI::CRMatrix< T >::destroy(), TBCI::CRMatrix< T >::n_rows, NULL, TBCI::CRMatrix< T >::rowSize, and T.
| bool TBCI::CRMatrix< T >::operator== | ( | const CRMatrix< T > & | m | ) | const [inline] |
Definition at line 452 of file crmatrix.h.
References TBCI::CRMatrix< T >::n_cols, and TBCI::CRMatrix< T >::n_rows.
| bool TBCI::CRMatrix< T >::operator!= | ( | const CRMatrix< T > & | m | ) | const [inline] |
| CRMatrix< T > TBCI::CRMatrix< T >::operator- | ( | ) | const [inline] |
Definition at line 466 of file crmatrix.h.
References TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, TBCI::CRMatrix< T >::setval(), and T.
| TVector< T > TBCI::CRMatrix< T >::operator* | ( | const Vector< T > & | v | ) | const [inline] |
Definition at line 479 of file crmatrix.h.
References BCHK, TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, TBCI::CRMatrix< T >::rowSize, TBCI::TVector< T >::set(), TBCI::TVector< T >::size(), and T.
| TVector< T > TBCI::CRMatrix< T >::operator* | ( | const TVector< T > & | tv | ) | const [inline] |
Definition at line 494 of file crmatrix.h.
| TVector< T > TBCI::CRMatrix< T >::operator* | ( | TSVector< T > & | tsv | ) | const [inline] |
Definition at line 502 of file crmatrix.h.
References BCHK, TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::TSVector< T >::destroy(), TBCI::TSVector< T >::get(), TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, TBCI::CRMatrix< T >::rowSize, TBCI::TVector< T >::set(), TBCI::TSVector< T >::size(), and T.
| void TBCI::CRMatrix< T >::MatVecMult | ( | Vector< T > & | res, | |
| const Vector< T > & | v | |||
| ) | const [inline] |
Definition at line 519 of file crmatrix.h.
References BCHKNR, TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, TBCI::CRMatrix< T >::rowSize, TBCI::TVector< T >::size(), and T.
Referenced by TBCI::MatVecMult().
| void TBCI::CRMatrix< T >::MatVecMult | ( | T * | v, | |
| T * | res | |||
| ) | [inline] |
Definition at line 536 of file crmatrix.h.
References TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_rows, TBCI::CRMatrix< T >::rowSize, and T.
| TVector< T > TBCI::CRMatrix< T >::transMult | ( | const Vector< T > & | v | ) | const [inline] |
Definition at line 550 of file crmatrix.h.
References BCHK, TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, TBCI::CRMatrix< T >::rowSize, TBCI::TVector< T >::setval(), and TBCI::TVector< T >::size().
Referenced by TBCI::CRMatrix< T >::transMult().
| TVector< T > TBCI::CRMatrix< T >::transMult | ( | const TVector< T > & | tv | ) | const [inline] |
| TVector< T > TBCI::CRMatrix< T >::transMult | ( | const TSVector< T > & | tsv | ) | const [inline] |
| CRMatrix< T > TBCI::CRMatrix< T >::operator* | ( | const T & | z | ) | const [inline] |
Definition at line 585 of file crmatrix.h.
References TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_rows, and TBCI::CRMatrix< T >::rowSize.
| CRMatrix< T > & TBCI::CRMatrix< T >::operator*= | ( | const T & | z | ) | [inline] |
Definition at line 614 of file crmatrix.h.
References TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_rows, and TBCI::CRMatrix< T >::rowSize.
| CRMatrix< T > TBCI::CRMatrix< T >::operator/ | ( | const T & | z | ) | const [inline] |
Definition at line 624 of file crmatrix.h.
References TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_rows, and TBCI::CRMatrix< T >::rowSize.
| CRMatrix< T > & TBCI::CRMatrix< T >::operator/= | ( | const T & | z | ) | [inline] |
Definition at line 636 of file crmatrix.h.
References TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_rows, and TBCI::CRMatrix< T >::rowSize.
| CRMatrix< T > TBCI::CRMatrix< T >::mult | ( | const T & | z | ) | const [inline] |
Definition at line 597 of file crmatrix.h.
References TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_rows, and TBCI::CRMatrix< T >::rowSize.
Referenced by TBCI::operator*().
| CRMatrix< T > & TBCI::CRMatrix< T >::swap | ( | CRMatrix< T > & | m | ) | [inline] |
Definition at line 739 of file crmatrix.h.
References TBCI::CRMatrix< T >::colIndex, TBCI::CRMatrix< T >::comp, TBCI::CRMatrix< T >::n_cols, TBCI::CRMatrix< T >::n_rows, TBCI::CRMatrix< T >::rowSize, and TBCI::SWAP().
Referenced by TBCI::CRMatrix< T >::transpose().
| CRMatrix< T > TBCI::CRMatrix< T >::transposed_copy | ( | ) | const [inline] |
Inefficient! Use transMult if possible.
Definition at line 748 of file crmatrix.h.
References TBCI::CRMatrix< T >::columns(), and TBCI::CRMatrix< T >::rows().
Referenced by TBCI::transpose(), and TBCI::CRMatrix< T >::transpose().
| CRMatrix< T > & TBCI::CRMatrix< T >::transpose | ( | ) | [inline] |
Definition at line 758 of file crmatrix.h.
References TBCI::CRMatrix< T >::swap(), and TBCI::CRMatrix< T >::transposed_copy().
| std:: ostream& operator<< | ( | std::ostream & | stream, | |
| const CRMatrix< T > & | m | |||
| ) | [friend] |
Definition at line 773 of file crmatrix.h.
unsigned int TBCI::CRMatrix< T >::n_rows [protected] |
Definition at line 66 of file crmatrix.h.
Referenced by TBCI::CRMatrix< T >::allocate(), TBCI::CRMatrix< T >::copy(), TBCI::CRMatrix< T >::CRMatrix(), TBCI::CRMatrix< T >::destroy(), TBCI::CRMatrix< T >::fill(), TBCI::CRMatrix< T >::get_row(), TBCI::CRMatrix< T >::MatVecMult(), TBCI::CRMatrix< T >::mult(), TBCI::CRMatrix< T >::operator()(), TBCI::CRMatrix< T >::operator*(), TBCI::CRMatrix< T >::operator*=(), TBCI::CRMatrix< T >::operator-(), TBCI::CRMatrix< T >::operator/(), TBCI::CRMatrix< T >::operator/=(), TBCI::CRMatrix< T >::operator=(), TBCI::CRMatrix< T >::operator==(), TBCI::CRMatrix< T >::resize(), TBCI::CRMatrix< T >::set_row(), TBCI::CRMatrix< T >::setunit(), TBCI::CRMatrix< T >::setval(), TBCI::CRMatrix< T >::size(), TBCI::CRMatrix< T >::swap(), and TBCI::CRMatrix< T >::transMult().
unsigned int TBCI::CRMatrix< T >::n_cols [protected] |
Definition at line 66 of file crmatrix.h.
Referenced by TBCI::CRMatrix< T >::allocate(), TBCI::CRMatrix< T >::copy(), TBCI::CRMatrix< T >::CRMatrix(), TBCI::CRMatrix< T >::get_row(), TBCI::CRMatrix< T >::MatVecMult(), TBCI::CRMatrix< T >::operator()(), TBCI::CRMatrix< T >::operator*(), TBCI::CRMatrix< T >::operator-(), TBCI::CRMatrix< T >::operator==(), TBCI::CRMatrix< T >::resize(), TBCI::CRMatrix< T >::set_row(), TBCI::CRMatrix< T >::setunit(), TBCI::CRMatrix< T >::setval(), TBCI::CRMatrix< T >::swap(), and TBCI::CRMatrix< T >::transMult().
unsigned int* TBCI::CRMatrix< T >::rowSize [protected] |
Definition at line 67 of file crmatrix.h.
Referenced by TBCI::CRMatrix< T >::allocate(), TBCI::CRMatrix< T >::copy(), TBCI::CRMatrix< T >::destroy(), TBCI::CRMatrix< T >::fill(), TBCI::CRMatrix< T >::MatVecMult(), TBCI::CRMatrix< T >::mult(), TBCI::CRMatrix< T >::operator()(), TBCI::CRMatrix< T >::operator*(), TBCI::CRMatrix< T >::operator*=(), TBCI::CRMatrix< T >::operator/(), TBCI::CRMatrix< T >::operator/=(), TBCI::CRMatrix< T >::operator=(), TBCI::CRMatrix< T >::set_row(), TBCI::CRMatrix< T >::setval(), TBCI::CRMatrix< T >::size(), TBCI::CRMatrix< T >::swap(), and TBCI::CRMatrix< T >::transMult().
unsigned int** TBCI::CRMatrix< T >::colIndex [protected] |
Definition at line 68 of file crmatrix.h.
Referenced by TBCI::CRMatrix< T >::allocate(), TBCI::CRMatrix< T >::copy(), TBCI::CRMatrix< T >::destroy(), TBCI::CRMatrix< T >::MatVecMult(), TBCI::CRMatrix< T >::operator()(), TBCI::CRMatrix< T >::operator*(), TBCI::CRMatrix< T >::operator=(), TBCI::CRMatrix< T >::set_row(), TBCI::CRMatrix< T >::setval(), TBCI::CRMatrix< T >::swap(), and TBCI::CRMatrix< T >::transMult().
T** TBCI::CRMatrix< T >::comp [protected] |
Definition at line 69 of file crmatrix.h.
Referenced by TBCI::CRMatrix< T >::allocate(), TBCI::CRMatrix< T >::copy(), TBCI::CRMatrix< T >::destroy(), TBCI::CRMatrix< T >::fill(), TBCI::CRMatrix< T >::MatVecMult(), TBCI::CRMatrix< T >::mult(), TBCI::CRMatrix< T >::operator()(), TBCI::CRMatrix< T >::operator*(), TBCI::CRMatrix< T >::operator*=(), TBCI::CRMatrix< T >::operator/(), TBCI::CRMatrix< T >::operator/=(), TBCI::CRMatrix< T >::operator=(), TBCI::CRMatrix< T >::set_row(), TBCI::CRMatrix< T >::setval(), TBCI::CRMatrix< T >::swap(), and TBCI::CRMatrix< T >::transMult().
T TBCI::CRMatrix< T >::dummy [mutable, protected] |
Definition at line 70 of file crmatrix.h.
Referenced by TBCI::CRMatrix< T >::allocate(), TBCI::CRMatrix< T >::copy(), and TBCI::CRMatrix< T >::operator()().
1.5.6