In file sparsematrix.hpp: The graph of a sparse matrix
Documentation
The graph of a sparse matrix
Inheritance:
Public Methods
-
MatrixGraph(int as, int max_elsperrow)
- matrix of hight as, uniform number of els/row
-
MatrixGraph(const ARRAY<int> & elsperrow)
- arbitrary number of els/row
-
MatrixGraph(const MatrixGraph & graph)
- shadow matrix graph
-
void Compress()
- eliminate unused columne indices
-
int GetPosition(int i, int j) const
- returns position of Element (i, j), exception for unused
-
int GetPositionTest(int i, int j) const
- returns position of Element (i, j), -1 for unused
-
void GetPositionsSorted(int row, int n, int* pos) const
- find positions of n sorted elements, overwrite pos, exception for unused
-
int CreatePosition(int i, int j)
- returns position of new element
Protected Fields
-
int size
- number of rows
-
int nze
- non-zero elements
-
MoveableMem<int> colnr
- column numbers
-
MoveableMem<int> firsti
- pointer to first in row
-
MoveableMem<int> diagi
- position of diagonal element
-
bool owner
- owner of arrays ?
int size
- number of rows
int nze
- non-zero elements
MoveableMem<int> colnr
- column numbers
MoveableMem<int> firsti
- pointer to first in row
MoveableMem<int> diagi
- position of diagonal element
bool owner
- owner of arrays ?
MatrixGraph(int as, int max_elsperrow)
- matrix of hight as, uniform number of els/row
MatrixGraph(const ARRAY<int> & elsperrow)
- arbitrary number of els/row
MatrixGraph(const MatrixGraph & graph)
- shadow matrix graph
void Compress()
- eliminate unused columne indices
int GetPosition(int i, int j) const
- returns position of Element (i, j), exception for unused
int GetPositionTest(int i, int j) const
- returns position of Element (i, j), -1 for unused
void GetPositionsSorted(int row, int n, int* pos) const
- find positions of n sorted elements, overwrite pos, exception for unused
int CreatePosition(int i, int j)
- returns position of new element
- Direct child classes:
- BaseSparseMatrix
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.