CSC_Matrix Class Reference

Organise data in a CSC matrix format. More...

#include <CSC_matrix.h>

Inheritance diagram for CSC_Matrix:
CSCTriple_Matrix< T >

List of all members.

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.

Detailed Description

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.

Author
lapark
Revision
1.5.2.1
Date
2009/11/05 01:54:06
Id
CSC_matrix.h,v 1.5.2.1 2009/11/05 01:54:06 lapark Exp

The documentation for this class was generated from the following files:
 All Classes Functions Variables Friends

Generated on Tue Nov 10 14:12:11 2009 for textIR by  doxygen 1.6.1