Organise data in a CSC matrix format. More...
#include <CSC_matrix.h>
Public Member Functions | |
| CSC_Matrix (int columns, int length) | |
| Initialise the matrix. | |
| void | insertElement (int column, int row, float value) |
| Insert the next element in the matrix. | |
| int | closeInsert (void) |
| Finish inserting elements and close matrix. | |
| void | reset (void) |
| Reset the matrix. | |
| void | reset (int columnNumber) |
| Reset to specific column. | |
| void | nextElement (void) |
| Move to the next element in the matrix. | |
| int | column (void) |
| Return the current column position. | |
| int | row (void) |
| Return the current row position. | |
| float | element (void) |
| Return the current element value. | |
| int | length (void) |
| Return the number of elements in the matrix. | |
| void | editElement (float value) |
| Replace the current element value with the given value. | |
| void | purgeMatrix (void) |
| Write the matrix to the file "csc_matrix.bin". | |
| void | salvageMatrix (void) |
| Read the matrix from the file "csc_matrix.bin". | |
| int | columns (void) |
| Return the number of columns. | |
Public Attributes | |
| int * | CSC_row |
| The CSC row pointer. | |
| int * | CSC_column |
| The CSC column pointer. | |
| float * | CSC_matrix |
| The CSC element pointer. | |
Organise data in a CSC matrix format.
This class is used to organise triples into the CSC matrix format used by many fortran and c routines for sparse matrix decomposition.
1.6.1