xref: /petsc/src/mat/impls/dense/seq/dense.h (revision 73f4d3771d9e6ab3f04055eab794d7609818b9d3)
1 /* $Id: dense.h,v 1.10 2001/08/07 03:02:45 balay Exp $ */
2 
3 #include "src/mat/matimpl.h"
4 
5 #if !defined(__DENSE_H)
6 #define __DENSE_H
7 
8 /*
9   MATSEQDENSE format - conventional dense Fortran storage (by columns)
10 */
11 
12 typedef struct {
13   PetscScalar  *v;                /* matrix elements */
14   PetscTruth   roworiented;       /* if true, row oriented input (default) */
15   int          pad;               /* padding */
16   int          *pivots;           /* pivots in LU factorization */
17   PetscTruth   user_alloc;        /* true if the user provided the dense data */
18 } Mat_SeqDense;
19 
20 EXTERN int MatMult_SeqDense(Mat A,Vec,Vec);
21 EXTERN int MatMultAdd_SeqDense(Mat A,Vec,Vec,Vec);
22 EXTERN int MatMultTranspose_SeqDense(Mat A,Vec,Vec);
23 EXTERN int MatMultTransposeAdd_SeqDense(Mat A,Vec,Vec,Vec);
24 
25 #endif
26