|
[Sponsors] |
May 8, 2001, 23:53 |
Sparse matrix
|
#1 |
Guest
Posts: n/a
|
Dear all, I have a problem with sparse matrix treatment. My matrix holds many zero-elements and real irregularity. From the memory storage limits, I want compress it. And hopefully I want to compute it in original arrangement withot uncompressing ( keep less memory). Do you have any idea? Some algorithm(liblary) exist? Please advise me.
Thanks in advance. |
|
May 9, 2001, 06:58 |
Re: Sparse matrix
|
#2 |
Guest
Posts: n/a
|
I use PETSc (http://www.mcs.anl.gov/petsc/)
|
|
May 9, 2001, 16:20 |
Re: Sparse matrix
|
#3 |
Guest
Posts: n/a
|
dears sorry for my bed english dear damir galeev i dont know petsc dear takuya tsuji you can use twuo rectangular matrix: the first for the coefficient ,the second for the column index.programming you can resolve the problem. hi
|
|
May 9, 2001, 17:00 |
Re: Sparse matrix
|
#4 |
Guest
Posts: n/a
|
You can use what is called a triad format. You define two integer arrays (which carry row and column numbers of non-zero entries) and one real array which carries the corresponding non-zero entries. Standard software like netlib often recognize this format. See www.netlib.org for other formats. Once you have the sparse matrix in a one standard format, I think there are standard routines to change into other formats.
|
|
May 9, 2001, 19:07 |
Re: Sparse matrix
|
#5 |
Guest
Posts: n/a
|
One can define 2 integer arrays for sparse matrix: 1st: N[row_number] = amount of all none-zero elements right up to the row number "row_number", the 2nd one gives the column for i-th none-zero element in the row
column = column[N[row]+i] the only real (or double) array defines values: value = value[N[row]+i] (i - number of the none-zero element in the row) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Force can not converge | colopolo | CFX | 13 | October 4, 2011 23:03 |
Sparse solver for block-diagonal matrix | alberto_cuoci | Main CFD Forum | 1 | July 5, 2011 07:37 |
C++ solver for Large sparse matrix! | sina_mech | Main CFD Forum | 7 | November 20, 2009 14:52 |
OpenFOAM version 1.6 details | lakeat | OpenFOAM Running, Solving & CFD | 42 | August 26, 2009 22:47 |
free C code for large sparse matrix linear solver | ztdep | Main CFD Forum | 7 | May 24, 2007 15:14 |