|
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 | |
| 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 () |
| 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 | |
| T & | operator() (const unsigned, const unsigned) |
| rw access | |
| 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.
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.
Definition at line 83 of file crmatrix.h.
References allocate().
Referenced by clear(), copy(), CRMatrix(), fill(), mult(), operator!=(), operator*(), operator*=(), operator-(), operator/(), operator/=(), operator<<FGD, operator=(), operator==(), setunit(), setval(), swap(), transpose(), and transposed_copy().
Definition at line 84 of file crmatrix.h.
References allocate(), columns(), and rows().
Definition at line 85 of file crmatrix.h.
References copy(), and CRMatrix().
Definition at line 171 of file crmatrix.h.
References allocate(), i, n_cols, n_rows, and T.
Definition at line 87 of file crmatrix.h.
References destroy().
|
protected |
Definition at line 647 of file crmatrix.h.
References BCHKNR, colIndex, columns(), comp, dummy, i, n_cols, n_rows, NULL, rows(), rowSize, and T.
Referenced by CRMatrix(), CRMatrix(), CRMatrix(), and resize().
set all elements defined to zero
Definition at line 725 of file crmatrix.h.
References CRMatrix(), fill(), and T.
Referenced by setunit().
Definition at line 119 of file crmatrix.h.
References n_cols.
Referenced by allocate(), CRMatrix(), operator<<(), and transposed_copy().
Definition at line 686 of file crmatrix.h.
References BCHKNR, colIndex, comp, CRMatrix(), dummy, i, n_cols, n_rows, NULL, rowSize, and T.
Referenced by CRMatrix(), and operator=().
Definition at line 669 of file crmatrix.h.
References colIndex, comp, i, n_rows, NULL, and rowSize.
Referenced by TSVector< T >::operator+(), TSVector< T >::operator-(), operator=(), TSVector< T >::operator==(), TSVector< T >::operator==(), resize(), and ~CRMatrix().
set all defined element to a val
Definition at line 716 of file crmatrix.h.
References comp, CRMatrix(), i, n_rows, rowSize, and T.
Referenced by clear().
|
inline |
Definition at line 101 of file crmatrix.h.
References T.
Definition at line 312 of file crmatrix.h.
References BCHK, index, n_cols, n_rows, and TVector< T >::set().
Definition at line 90 of file crmatrix.h.
Definition at line 536 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, colIndex, comp, i, n_cols, n_rows, res, rowSize, TVector< T >::size(), and T.
Referenced by MatVecMult().
Definition at line 597 of file crmatrix.h.
References comp, CRMatrix(), i, n_rows, res, rowSize, and T.
Referenced by operator*().
Definition at line 128 of file crmatrix.h.
References CRMatrix(), and operator==().
Definition at line 106 of file crmatrix.h.
Definition at line 585 of file crmatrix.h.
References CRMatrix(), i, res, and T.
Definition at line 494 of file crmatrix.h.
Definition at line 502 of file crmatrix.h.
References BCHK, colIndex, comp, TSVector< T >::destroy(), TSVector< T >::get(), i, n_cols, n_rows, res, rowSize, TSVector< T >::size(), and T.
Definition at line 614 of file crmatrix.h.
Definition at line 466 of file crmatrix.h.
Definition at line 624 of file crmatrix.h.
References CRMatrix(), i, n_rows, res, and T.
Definition at line 636 of file crmatrix.h.
Definition at line 452 of file crmatrix.h.
References CRMatrix(), i, n_cols, and n_rows.
Referenced by operator!=().
|
inline |
Definition at line 205 of file crmatrix.h.
References allocate(), destroy(), n_cols, and n_rows.
Definition at line 118 of file crmatrix.h.
References n_rows.
Referenced by allocate(), CRMatrix(), operator<<(), and transposed_copy().
Definition at line 368 of file crmatrix.h.
References set_row().
Definition at line 361 of file crmatrix.h.
References set_row().
| 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, colIndex, comp, CRMatrix(), i, index, n_cols, n_rows, NULL, rowSize, and T.
Referenced by operator()(), and setunit().
Definition at line 193 of file crmatrix.h.
References i, n_rows, and rowSize.
Referenced by TSVector< T >::add_t_tsv(), and TSVector< T >::sub_t_tsv().
Definition at line 739 of file crmatrix.h.
References colIndex, comp, CRMatrix(), n_cols, n_rows, and rowSize.
Referenced by transpose().
Definition at line 576 of file crmatrix.h.
References transMult().
Definition at line 568 of file crmatrix.h.
References transMult().
Definition at line 550 of file crmatrix.h.
References BCHK, colIndex, comp, i, n_cols, n_rows, res, rowSize, and TVector< T >::size().
Referenced by transMult(), and transMult().
Definition at line 758 of file crmatrix.h.
References CRMatrix(), swap(), and transposed_copy().
Inefficient! Use transMult if possible.
Definition at line 748 of file crmatrix.h.
References c, columns(), CRMatrix(), and rows().
Referenced by transpose(), and transpose().
|
friend |
References CRMatrix(), and STD__.
Definition at line 68 of file crmatrix.h.
Referenced by allocate(), copy(), destroy(), MatVecMult(), operator()(), operator*(), operator*(), operator=(), set_row(), set_row(), setval(), setval(), swap(), and transMult().
Definition at line 69 of file crmatrix.h.
Referenced by allocate(), copy(), destroy(), fill(), MatVecMult(), mult(), operator()(), operator*(), operator*(), operator*=(), operator/=(), operator=(), set_row(), set_row(), setval(), setval(), swap(), and transMult().
Definition at line 70 of file crmatrix.h.
Referenced by allocate(), copy(), and operator()().
Definition at line 66 of file crmatrix.h.
Referenced by allocate(), columns(), copy(), CRMatrix(), get_row(), MatVecMult(), operator()(), operator*(), operator*(), operator-(), operator==(), resize(), set_row(), setunit(), setval(), setval(), swap(), and transMult().
Definition at line 66 of file crmatrix.h.
Referenced by allocate(), copy(), CRMatrix(), destroy(), fill(), get_row(), MatVecMult(), mult(), operator()(), operator*(), operator*(), operator*=(), operator-(), operator/(), operator/=(), operator=(), operator==(), resize(), rows(), set_row(), set_row(), setunit(), setval(), setval(), size(), swap(), and transMult().
Definition at line 67 of file crmatrix.h.
Referenced by allocate(), copy(), destroy(), fill(), MatVecMult(), mult(), operator()(), operator*(), operator*(), operator*=(), operator/=(), operator=(), set_row(), set_row(), setval(), setval(), size(), swap(), and transMult().