#include <SparseMatrix.hpp>
Collaboration diagram for SparseMatrixLine< T >:

Public Member Functions | |
| void | Reset (long data_len, long n_offsets) |
| Sets the new sizes (the contents are lost). | |
| void | ReSize (long data_len, long n_offsets) |
| Resizes the arrays and copies the first entries. | |
| long | NEntries () const |
| Returns the number of nonzero entries in the line. | |
| long | RefOffset (long i) const |
| Returns the raw index of a referenced block in the src. vec. | |
| void | SetZero () |
| Sets the line to zero. | |
| const T & | Data (long i) const |
| Returns a const-reference to the entry of 'data' for index i. | |
| T & | Data (long i) |
| Returns a reference to the entry of 'data' for index i. | |
Friends | |
| class | Array< SparseMatrixLine< T > > |
| class | SparseMatrix< T > |
Objects of this class stores entries of a matrix line associated with a grid position. The entries a kept in a compact ('Harwell-Boeing'-like) format.
The template depends on a type T. This type should satisfy the conditions listed in 'small_matrix.hpp' for small matrices.
| void SparseMatrixLine< T >::Reset | ( | long | data_len, | |
| long | n_offsets | |||
| ) | [inline] |
Sets the new sizes (the contents are lost).
| [in] | data_len | The new number of T-objects in the line |
| [in] | n_offsets | The new number of the offsets in the line |
| void SparseMatrixLine< T >::ReSize | ( | long | data_len, | |
| long | n_offsets | |||
| ) | [inline] |
Resizes the arrays and copies the first entries.
| [in] | data_len | The new number of T-objects in the line |
| [in] | n_offsets | The new number of the offsets in the line |
| long SparseMatrixLine< T >::NEntries | ( | ) | const [inline] |
Returns the number of nonzero entries in the line.
| long SparseMatrixLine< T >::RefOffset | ( | long | i | ) | const [inline] |
Returns the raw index of a referenced block in the src. vec.
| [in] | i | Index of the matrix entry in the line |
| void SparseMatrixLine< T >::SetZero | ( | ) | [inline] |
Sets the line to zero.
| const T& SparseMatrixLine< T >::Data | ( | long | i | ) | const [inline] |
Returns a const-reference to the entry of 'data' for index i.
| T& SparseMatrixLine< T >::Data | ( | long | i | ) | [inline] |
Returns a reference to the entry of 'data' for index i.
friend class Array< SparseMatrixLine< T > > [friend] |
friend class SparseMatrix< T > [friend] |
1.5.2