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

Diff of /trunk/paso/src/SystemMatrix.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 414 by gross, Tue Jan 3 00:41:56 2006 UTC revision 415 by gross, Wed Jan 4 05:37:33 2006 UTC
# Line 22  Line 22 
22    
23  /*  this struct holds a stiffness matrix: */  /*  this struct holds a stiffness matrix: */
24    
25  #define FORMAT_CSR 1  #define MATRIX_FORMAT_DEFAULT 0
26  #define FORMAT_SYM 2  #define MATRIX_FORMAT_CSC 1
27  #define FORMAT_BLK1 4  #define MATRIX_FORMAT_SYM 2
28  #define FORMAT_INDEX1 8  #define MATRIX_FORMAT_BLK1 4
29    #define MATRIX_FORMAT_OFFSET1 8
 /* matrix type */  
 #define  CSC 0  
 #define  CSR FORMAT_CSR  
 /* these formats are used in the SCSL context */  
 #define  CSC_SYM FORMAT_SYM  
 #define  CSR_SYM (FORMAT_CSR+FORMAT_SYM)  
 #define  CSC_BLK1 FORMAT_BLK1  
 #define  CSR_BLK1 (FORMAT_CSR+FORMAT_BLK1)  
 #define  CSC_BLK1_SYM (FORMAT_BLK1+FORMAT_SYM)  
 #define  CSR_BLK1_SYM (FORMAT_CSR+FORMAT_BLK1+FORMAT_SYM)  
30    
31  typedef int Paso_SystemMatrixType;  typedef int Paso_SystemMatrixType;
32    
# Line 77  void Paso_SystemMatrix_setValues(Paso_Sy Line 67  void Paso_SystemMatrix_setValues(Paso_Sy
67  void Paso_SystemMatrix_copy(Paso_SystemMatrix*,double*);  void Paso_SystemMatrix_copy(Paso_SystemMatrix*,double*);
68  void Paso_SystemMatrix_add(Paso_SystemMatrix*,dim_t,index_t*, dim_t,dim_t,index_t*,dim_t, double*);  void Paso_SystemMatrix_add(Paso_SystemMatrix*,dim_t,index_t*, dim_t,dim_t,index_t*,dim_t, double*);
69  void Paso_SystemMatrix_MatrixVector(double alpha, Paso_SystemMatrix* A, double* in, double beta, double* out);  void Paso_SystemMatrix_MatrixVector(double alpha, Paso_SystemMatrix* A, double* in, double beta, double* out);
70    void Paso_SystemMatrix_MatrixVector_CSC_OFFSET0(double alpha, Paso_SystemMatrix* A, double* in, double beta, double* out);
71    void Paso_SystemMatrix_MatrixVector_CSC_OFFSET1(double alpha, Paso_SystemMatrix* A, double* in, double beta, double* out);
72    void Paso_SystemMatrix_MatrixVector_CSR_OFFSET0(double alpha, Paso_SystemMatrix* A, double* in, double beta, double* out);
73    void Paso_SystemMatrix_MatrixVector_CSR_OFFSET1(double alpha, Paso_SystemMatrix* A, double* in, double beta, double* out);
74    
75  void Paso_SystemMatrix_saveMM(Paso_SystemMatrix *, char *);  void Paso_SystemMatrix_saveMM(Paso_SystemMatrix *, char *);
76  void Paso_SystemMatrix_saveHB(Paso_SystemMatrix *, char *);  void Paso_SystemMatrix_saveHB(Paso_SystemMatrix *, char *);

Legend:
Removed from v.414  
changed lines
  Added in v.415

  ViewVC Help
Powered by ViewVC 1.1.26