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#ifndef SUPERLU_TYPEDEF_COMPLEX
63#define SUPERLU_TYPEDEF_COMPLEX
65#include "slu_scomplex.h"
69 cgssvx(superlu_options_t *, SuperMatrix *,
int *,
int *,
int *,
70 char *,
float *,
float *, SuperMatrix *, SuperMatrix *,
71 void *,
int, SuperMatrix *, SuperMatrix *,
72 float *,
float *,
float *,
float *,
73 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *,
int *);
77 cCreate_Dense_Matrix(SuperMatrix *,
int,
int, ::complex *,
int,
78 Stype_t, Dtype_t, Mtype_t);
82 cCreate_CompCol_Matrix(SuperMatrix *,
int,
int,
int, ::complex *,
83 int *,
int *, Stype_t, Dtype_t, Mtype_t);
85 extern int cQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
87 extern void cPrint_CompCol_Matrix(
char *, SuperMatrix *);
91#if __has_include("slu_zdefs.h")
92#include "slu_dcomplex.h"
95 zgssvx(superlu_options_t *, SuperMatrix *,
int *,
int *,
int *,
96 char *,
double *,
double *, SuperMatrix *, SuperMatrix *,
97 void *,
int, SuperMatrix *, SuperMatrix *,
98 double *,
double *,
double *,
double *,
99 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *,
int *);
103 zCreate_CompCol_Matrix(SuperMatrix *,
int,
int,
int, doublecomplex *,
104 int *,
int *, Stype_t, Dtype_t, Mtype_t);
107 zCreate_Dense_Matrix(SuperMatrix *,
int,
int, doublecomplex *,
int,
108 Stype_t, Dtype_t, Mtype_t);
110 extern int zQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
112 extern void zPrint_CompCol_Matrix(
char *, SuperMatrix *);