In file sparsematrix.hpp:

class MatrixGraph

The graph of a sparse matrix

Documentation

The graph of a sparse matrix

Inheritance:


Public Methods

[more] MatrixGraph(int as, int max_elsperrow)
matrix of hight as, uniform number of els/row
[more] MatrixGraph(const ARRAY<int> & elsperrow)
arbitrary number of els/row
[more] MatrixGraph(const MatrixGraph & graph)
shadow matrix graph
[more]void Compress()
eliminate unused columne indices
[more]int GetPosition(int i, int j) const
returns position of Element (i, j), exception for unused
[more]int GetPositionTest(int i, int j) const
returns position of Element (i, j), -1 for unused
[more]void GetPositionsSorted(int row, int n, int* pos) const
find positions of n sorted elements, overwrite pos, exception for unused
[more]int CreatePosition(int i, int j)
returns position of new element

Protected Fields

[more]int size
number of rows
[more]int nze
non-zero elements
[more]MoveableMem<int> colnr
column numbers
[more]MoveableMem<int> firsti
pointer to first in row
[more]MoveableMem<int> diagi
position of diagonal element
[more]bool owner
owner of arrays ?

oint size
number of rows

oint nze
non-zero elements

oMoveableMem<int> colnr
column numbers

oMoveableMem<int> firsti
pointer to first in row

oMoveableMem<int> diagi
position of diagonal element

obool owner
owner of arrays ?

o MatrixGraph(int as, int max_elsperrow)
matrix of hight as, uniform number of els/row

o MatrixGraph(const ARRAY<int> & elsperrow)
arbitrary number of els/row

o MatrixGraph(const MatrixGraph & graph)
shadow matrix graph

ovoid Compress()
eliminate unused columne indices

oint GetPosition(int i, int j) const
returns position of Element (i, j), exception for unused

oint GetPositionTest(int i, int j) const
returns position of Element (i, j), -1 for unused

ovoid GetPositionsSorted(int row, int n, int* pos) const
find positions of n sorted elements, overwrite pos, exception for unused

oint 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++.