|
TBCI Numerical high perf. C++ Library
2.8.0
|
C++ class for sparse matrices using compressed row storage. More...
#include <crmatrix.h>


Public Types | |
| typedef T | value_type |
| typedef T | element_type |
| typedef T aligned_value_type | TALIGN (MIN_ALIGN2) |
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 More... | |
| CRMatrix< T > & | fill (const T &) |
| set all defined element to a val More... | |
| CRMatrix< T > & | setunit (const T &=(T) 1) |
| set CSCMatrix to val times the unit matrix More... | |
| const T & | operator() (unsigned int row, unsigned int column) const |
| element access (read) More... | |
| 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) More... | |
| 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. More... | |
| CRMatrix< T > & | transpose () |
Public Member Functions inherited from Matrix_Sig< T > | |
| Matrix_Sig () | |
| ~Matrix_Sig () | |
| tbci_traits< T >::const_refval_type | operator() (const unsigned, const unsigned) const |
| ro access More... | |
| T & | operator() (const unsigned, const unsigned) |
| rw access More... | |
| Matrix_Sig< T > & | fill (const T &) |
| Matrix_Sig< T > & | setunit (const T &=(T) 1) |
| Matrix_Sig< T > & | clear () |
| TVector< T > | operator* (const Vector_Sig< T > &) const |
| TVector< T > | transMult (const Vector_Sig< T > &) const |
| unsigned int | rows () const |
| unsigned int | columns () const |
Static Public Member Functions | |
| static const char * | mat_info () |
Static Public Member Functions inherited from Matrix_Sig< T > | |
| 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<< FGD (STD__ ostream &stream, const CRMatrix< T > &m) |
C++ class for sparse matrices using compressed row storage.
Definition at line 63 of file crmatrix.h.
| typedef T CRMatrix< T >::element_type |
Definition at line 80 of file crmatrix.h.
| typedef T aligned_value_type CRMatrix< T >::TALIGN(MIN_ALIGN2) |
Definition at line 81 of file crmatrix.h.
| typedef T CRMatrix< T >::value_type |
Definition at line 79 of file crmatrix.h.
Definition at line 83 of file crmatrix.h.
References CRMatrix< T >::allocate().
Definition at line 84 of file crmatrix.h.
References CRMatrix< T >::allocate().
Definition at line 85 of file crmatrix.h.
References CRMatrix< T >::copy().
Definition at line 171 of file crmatrix.h.
References i.
Definition at line 87 of file crmatrix.h.
References CRMatrix< T >::destroy().
|
protected |
Definition at line 647 of file crmatrix.h.
References BCHKNR, i, NULL, and T.
Referenced by CRMatrix< T >::CRMatrix().
Definition at line 119 of file crmatrix.h.
References CRMatrix< T >::n_cols.
Referenced by operator<<().
Definition at line 686 of file crmatrix.h.
References BCHKNR, CRMatrix< T >::colIndex, CRMatrix< T >::comp, i, CRMatrix< T >::n_cols, CRMatrix< T >::n_rows, NULL, CRMatrix< T >::rowSize, and T.
Referenced by CRMatrix< T >::CRMatrix().
Definition at line 669 of file crmatrix.h.
Referenced by TSVector< T >::operator+(), TSVector< T >::operator-(), TSVector< T >::operator==(), and CRMatrix< T >::~CRMatrix().
|
inline |
Definition at line 101 of file crmatrix.h.
Definition at line 312 of file crmatrix.h.
References BCHK, index, and TVector< T >::set().
Definition at line 90 of file crmatrix.h.
| void CRMatrix< T >::MatVecMult | ( | Vector< T > & | res, |
| const Vector< T > & | v | ||
| ) | const |
Definition at line 519 of file crmatrix.h.
References BCHKNR, i, res, TVector< T >::size(), T, and v.
Referenced by MatVecMult().
Definition at line 536 of file crmatrix.h.
Definition at line 597 of file crmatrix.h.
References CRMatrix< T >::comp, i, and res.
Referenced by operator*().
Definition at line 128 of file crmatrix.h.
References CRMatrix< T >::operator==().
Definition at line 106 of file crmatrix.h.
References CRMatrix< T >::setval().
Definition at line 479 of file crmatrix.h.
References BCHK, i, res, TVector< T >::set(), TVector< T >::size(), T, and v.
Definition at line 494 of file crmatrix.h.
References v.
Definition at line 502 of file crmatrix.h.
References BCHK, TSVector< T >::destroy(), TSVector< T >::get(), i, res, TVector< T >::set(), TSVector< T >::size(), and T.
Definition at line 585 of file crmatrix.h.
References CRMatrix< T >::comp, i, and res.
Definition at line 614 of file crmatrix.h.
References i.
Definition at line 466 of file crmatrix.h.
References i, res, CRMatrix< T >::setval(), and T.
Definition at line 624 of file crmatrix.h.
References CRMatrix< T >::comp, i, and res.
Definition at line 636 of file crmatrix.h.
References i.
Definition at line 409 of file crmatrix.h.
References BCHK, CRMatrix< T >::colIndex, CRMatrix< T >::comp, i, CRMatrix< T >::n_rows, NULL, CRMatrix< T >::rowSize, and T.
Definition at line 452 of file crmatrix.h.
References i, CRMatrix< T >::n_cols, and CRMatrix< T >::n_rows.
Referenced by CRMatrix< T >::operator!=().
|
inline |
Definition at line 205 of file crmatrix.h.
Definition at line 118 of file crmatrix.h.
References CRMatrix< T >::n_rows.
Referenced by operator<<().
Definition at line 323 of file crmatrix.h.
References BCHKNR, index, NULL, TVector< T >::size(), T, and v.
Definition at line 361 of file crmatrix.h.
References v.
Definition at line 368 of file crmatrix.h.
References v.
| void CRMatrix< T >::set_row | ( | T * | value, |
| unsigned int | row, | ||
| unsigned int | count, | ||
| unsigned int * | index | ||
| ) |
Definition at line 377 of file crmatrix.h.
set CSCMatrix to val times the unit matrix
Definition at line 729 of file crmatrix.h.
| CRMatrix< T > & CRMatrix< T >::setval | ( | const T & | z, |
| unsigned int | row, | ||
| unsigned int | column | ||
| ) |
element access (write)
Definition at line 215 of file crmatrix.h.
References BCHK, i, index, NULL, T, and z.
Referenced by CRMatrix< T >::operator()(), and CRMatrix< T >::operator-().
Definition at line 193 of file crmatrix.h.
References i.
Referenced by TSVector< T >::add_t_tsv(), and TSVector< T >::sub_t_tsv().
Definition at line 739 of file crmatrix.h.
References CRMatrix< T >::colIndex, CRMatrix< T >::comp, CRMatrix< T >::n_cols, CRMatrix< T >::n_rows, CRMatrix< T >::rowSize, and TBCI::SWAP().
Definition at line 550 of file crmatrix.h.
References BCHK, i, res, TVector< T >::setval(), TVector< T >::size(), and v.
Definition at line 568 of file crmatrix.h.
References v.
Definition at line 576 of file crmatrix.h.
References v.
Definition at line 758 of file crmatrix.h.
Inefficient! Use transMult if possible.
Definition at line 748 of file crmatrix.h.
References c.
Referenced by transpose().
|
friend |
Definition at line 68 of file crmatrix.h.
Referenced by CRMatrix< T >::copy(), CRMatrix< T >::operator=(), and CRMatrix< T >::swap().
Definition at line 69 of file crmatrix.h.
Referenced by CRMatrix< T >::copy(), CRMatrix< T >::mult(), CRMatrix< T >::operator*(), CRMatrix< T >::operator/(), CRMatrix< T >::operator=(), and CRMatrix< T >::swap().
Definition at line 70 of file crmatrix.h.
Definition at line 66 of file crmatrix.h.
Referenced by CRMatrix< T >::columns(), CRMatrix< T >::copy(), CRMatrix< T >::operator==(), and CRMatrix< T >::swap().
Definition at line 66 of file crmatrix.h.
Referenced by CRMatrix< T >::copy(), CRMatrix< T >::operator=(), CRMatrix< T >::operator==(), CRMatrix< T >::rows(), and CRMatrix< T >::swap().
Definition at line 67 of file crmatrix.h.
Referenced by CRMatrix< T >::copy(), CRMatrix< T >::operator=(), and CRMatrix< T >::swap().
1.8.5