5#ifndef DUNE_ISTL_SUPERLUFUNCTIONS_HH
6#define DUNE_ISTL_SUPERLUFUNCTIONS_HH
10#define int_t SUPERLU_INT_TYPE
11#include "supermatrix.h"
15#if __has_include("slu_sdefs.h")
18 sgssvx(superlu_options_t *, SuperMatrix *,
int *,
int *,
int *,
19 char *,
float *,
float *, SuperMatrix *, SuperMatrix *,
20 void *,
int, SuperMatrix *, SuperMatrix *,
21 float *,
float *,
float *,
float *,
22 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *,
int *);
25 sCreate_Dense_Matrix(SuperMatrix *,
int,
int,
float *,
int,
26 Stype_t, Dtype_t, Mtype_t);
28 sCreate_CompCol_Matrix(SuperMatrix *,
int,
int,
int,
float *,
29 int *,
int *, Stype_t, Dtype_t, Mtype_t);
30 extern int sQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
32 extern void sPrint_CompCol_Matrix(
char *, SuperMatrix *);
36#if __has_include("slu_ddefs.h")
39 dgssvx(superlu_options_t *, SuperMatrix *,
int *,
int *,
int *,
40 char *,
double *,
double *, SuperMatrix *, SuperMatrix *,
41 void *,
int, SuperMatrix *, SuperMatrix *,
42 double *,
double *,
double *,
double *,
43 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *,
int *);
46 dCreate_CompCol_Matrix(SuperMatrix *,
int,
int,
int,
double *,
47 int *,
int *, Stype_t, Dtype_t, Mtype_t);
50 dCreate_Dense_Matrix(SuperMatrix *,
int,
int,
double *,
int,
51 Stype_t, Dtype_t, Mtype_t);
53 extern int dQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
55 extern void dPrint_CompCol_Matrix(
char *, SuperMatrix *);
59#if __has_include("slu_cdefs.h")
60#include "slu_scomplex.h"
64 cgssvx(superlu_options_t *, SuperMatrix *,
int *,
int *,
int *,
65 char *,
float *,
float *, SuperMatrix *, SuperMatrix *,
66 void *,
int, SuperMatrix *, SuperMatrix *,
67 float *,
float *,
float *,
float *,
68 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *,
int *);
72 cCreate_Dense_Matrix(SuperMatrix *,
int,
int, ::complex *,
int,
73 Stype_t, Dtype_t, Mtype_t);
77 cCreate_CompCol_Matrix(SuperMatrix *,
int,
int,
int, ::complex *,
78 int *,
int *, Stype_t, Dtype_t, Mtype_t);
80 extern int cQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
82 extern void cPrint_CompCol_Matrix(
char *, SuperMatrix *);
86#if __has_include("slu_zdefs.h")
87#include "slu_dcomplex.h"
90 zgssvx(superlu_options_t *, SuperMatrix *,
int *,
int *,
int *,
91 char *,
double *,
double *, SuperMatrix *, SuperMatrix *,
92 void *,
int, SuperMatrix *, SuperMatrix *,
93 double *,
double *,
double *,
double *,
94 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *,
int *);
98 zCreate_CompCol_Matrix(SuperMatrix *,
int,
int,
int, doublecomplex *,
99 int *,
int *, Stype_t, Dtype_t, Mtype_t);
102 zCreate_Dense_Matrix(SuperMatrix *,
int,
int, doublecomplex *,
int,
103 Stype_t, Dtype_t, Mtype_t);
105 extern int zQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
107 extern void zPrint_CompCol_Matrix(
char *, SuperMatrix *);