/[escript]/trunk/paso/src/SystemMatrixPattern.h
ViewVC logotype

Contents of /trunk/paso/src/SystemMatrixPattern.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 415 - (show annotations)
Wed Jan 4 05:37:33 2006 UTC (14 years, 5 months ago) by gross
File MIME type: text/plain
File size: 1882 byte(s)
a better way of representing the matrix format type is introduced. this is needed for the Paradiso and UMFPACK interface
1 /* $Id$ */
2
3 /**************************************************************/
4
5 /* Paso: system matrix pattern */
6
7 /**************************************************************/
8
9 /* Copyrights by ACcESS Australia 2004,2005 */
10 /* Author: gross@access.edu.au */
11
12 /**************************************************************/
13
14 #ifndef INC_PASO_SYSTEMMATRIXPATTERN
15 #define INC_PASO_SYSTEMMATRIXPATTERN
16
17 #include "Common.h"
18
19 /**************************************************************/
20
21 #define PATTERN_FORMAT_DEFAULT 0
22 #define PATTERN_FORMAT_SYM 1
23 #define PATTERN_FORMAT_OFFSET1 2
24
25 typedef struct Paso_SystemMatrixPattern {
26 int type;
27 dim_t n_ptr;
28 dim_t n_index;
29 index_t* ptr;
30 index_t* index;
31 dim_t len;
32 dim_t reference_counter;
33
34 } Paso_SystemMatrixPattern;
35
36
37 /* interfaces: */
38
39 Paso_SystemMatrixPattern* Paso_SystemMatrixPattern_alloc(int ,dim_t, index_t*,index_t*);
40 Paso_SystemMatrixPattern* Paso_SystemMatrixPattern_reference(Paso_SystemMatrixPattern*);
41 void Paso_SystemMatrixPattern_dealloc(Paso_SystemMatrixPattern*);
42 int Paso_comparIndex(const void *,const void *);
43 Paso_SystemMatrixPattern* Paso_SystemMatrixPattern_getSubpattern(Paso_SystemMatrixPattern*,dim_t,index_t*,index_t*);
44 void Paso_SystemMatrixPattern_mis(Paso_SystemMatrixPattern* pattern_p, index_t* mis_marker);
45 Paso_SystemMatrixPattern* Paso_SystemMatrixPattern_unrollBlocks(Paso_SystemMatrixPattern*,int, dim_t,dim_t);
46
47 #endif /* #ifndef INC_PASO_SYSTEMPATTERN */
48
49 /*
50 * $Log$
51 * Revision 1.2 2005/09/15 03:44:38 jgs
52 * Merge of development branch dev-02 back to main trunk on 2005-09-15
53 *
54 * Revision 1.1.2.1 2005/09/05 06:29:47 gross
55 * These files have been extracted from finley to define a stand alone libray for iterative
56 * linear solvers on the ALTIX. main entry through Paso_solve. this version compiles but
57 * has not been tested yet.
58 *
59 *
60 */

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26