xref: /petsc/src/mat/impls/dense/seq/dense.h (revision 70f55243aafb320636e2a54ff30cab5d1e8d3d7b)
1 /* $Id: dense.h,v 1.3 1996/04/09 20:24:20 curfman Exp bsmith $ */
2 
3 #include "src/mat/matimpl.h"
4 #include <math.h>
5 
6 #if !defined(__DENSE_H)
7 #define __DENSE_H
8 
9 /*
10   MATSEQDENSE format - conventional dense Fortran storage (by columns)
11 */
12 
13 typedef struct {
14   Scalar *v;                /* matrix elements */
15   int    roworiented;       /* if true, row oriented input (default) */
16   int    m, n;              /* rows, columns */
17   int    pad;               /* padding */
18   int    *pivots;           /* pivots in LU factorization */
19   int    user_alloc;        /* true if the user provided the dense data */
20 } Mat_SeqDense;
21 
22 extern int MatMult_SeqDense(Mat A,Vec,Vec);
23 extern int MatMultAdd_SeqDense(Mat A,Vec,Vec,Vec);
24 extern int MatMultTrans_SeqDense(Mat A,Vec,Vec);
25 extern int MatMultTransAdd_SeqDense(Mat A,Vec,Vec,Vec);
26 
27 #endif
28