Sparse matrix. More...
Public Types | |
|
typedef MappedSparseMatrix < Scalar, Flags > | Map |
Public Member Functions | |
| const int * | _innerIndexPtr () const |
| int * | _innerIndexPtr () |
| const int * | _outerIndexPtr () const |
| int * | _outerIndexPtr () |
| const Scalar * | _valuePtr () const |
| Scalar * | _valuePtr () |
| Scalar | coeff (int row, int col) const |
| Scalar & | coeffRef (int row, int col) |
| int | cols () const |
| void | endFill () |
| Scalar & | fill (int row, int col) |
| Scalar & | fillrand (int row, int col) |
| int | innerNonZeros (int j) const |
| int | innerSize () const |
| int | nonZeros () const |
| template<typename OtherDerived > | |
| SparseMatrix & | operator= (const SparseMatrixBase< OtherDerived > &other) |
| SparseMatrix & | operator= (const SparseMatrix &other) |
| int | outerSize () const |
| void | prune (Scalar reference, RealScalar epsilon=precision< RealScalar >()) |
| void | resize (int rows, int cols) |
| void | resizeNonZeros (int size) |
| int | rows () const |
| void | setZero () |
| SparseMatrix (const SparseMatrix &other) | |
| SparseMatrix (int rows, int cols) | |
| template<typename OtherDerived > | |
| SparseMatrix (const SparseMatrixBase< OtherDerived > &other) | |
| void | startFill (int reserveSize=1000) |
| void | swap (SparseMatrix &other) |
| ~SparseMatrix () | |
Protected Types | |
| enum | { IsRowMajor } |
|
typedef SparseMatrix< Scalar,(Flags &~RowMajorBit)|(IsRowMajor?RowMajorBit:0)> | TransposedSparseMatrix |
Protected Attributes | |
| CompressedStorage< Scalar > | m_data |
| int | m_innerSize |
| int * | m_outerIndex |
| int | m_outerSize |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const SparseMatrix &m) |
Sparse matrix.
| _Scalar | the scalar type, i.e. the type of the coefficients |
See http://www.netlib.org/linalg/html_templates/node91.html for details on the storage scheme.
| ~SparseMatrix | ( | ) | [inline] |
Destructor
| Scalar& fillrand | ( | int | row, | |
| int | col | |||
| ) | [inline] |
Like fill() but with random inner coordinates.
| int nonZeros | ( | ) | const [inline] |
| void resize | ( | int | rows, | |
| int | cols | |||
| ) | [inline] |
Resizes the matrix to a rows x cols matrix and initializes it to zero
| void startFill | ( | int | reserveSize = 1000 |
) | [inline] |
Initializes the filling process of *this.
| reserveSize | approximate number of nonzeros Note that the matrix *this is zero-ed. |
1.7.1