QR_MUMPS
 All Classes Files Functions Variables Enumerations Enumerator Pages
dqrm_mumps.h
Go to the documentation of this file.
1 /* ##############################################################################################
2 **
3 ** Copyright 2012 CNRS, INPT
4 **
5 ** This file is part of qr_mumps.
6 **
7 ** qr_mumps is free software: you can redistribute it and/or modify
8 ** it under the terms of the GNU Lesser General Public License as
9 ** published by the Free Software Foundation, either version 3 of
10 ** the License, or (at your option) any later version.
11 **
12 ** qr_mumps is distributed in the hope that it will be useful,
13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ** GNU Lesser General Public License for more details.
16 **
17 ** You can find a copy of the GNU Lesser General Public License
18 ** in the qr_mumps/doc directory.
19 **
20 ** ##############################################################################################*/
21 
22 
23 /*##############################################################################################*/
33 /*##############################################################################################*/
34 
35 #if defined(zprec) || defined(cprec)
36 #include <complex.h>
37 #endif
38 
39 #include <string.h>
40 
42  int *irn, *jcn;
43  double *val;
44  int m, n, nz;
45  int *cperm_in, *rperm, *cperm;
46  int icntl[20];
47  double rcntl[10];
48  long int gstats[10];
49  int h;
50  void *mat_ptr;
51 };
52 
53 
54 double qrm_swtime();
55 void dqrm_get_r_c(struct dqrm_spmat_type_c *qrm_spmat_c, struct dqrm_spmat_type_c *r);
56 void dqrm_spmat_init_c(struct dqrm_spmat_type_c *qrm_spmat_c);
57 void dqrm_spmat_destroy_c(struct dqrm_spmat_type_c *qrm_spmat_c);
58 void dqrm_readmat_c(char *matfile, struct dqrm_spmat_type_c *qrm_spmat_c);
59 void dqrm_analyse_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char transp);
60 void dqrm_factorize_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char transp);
61 void dqrm_solve_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char transp,
62  double *b, double *x, const int nrhs);
63 void dqrm_apply_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char transp,
64  double *b, const int nrhs);
65 void dqrm_matmul_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char transp,
66  const double alpha, double *x,
67  const double beta, double *y,
68  const int nrhs);
69 void dqrm_matnrm_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char ntype,
70  double *nrm);
71 void dqrm_vecnrm_c(const double *x, const int n, const int nrhs,
72  const char ntype, double *nrm);
73 void dqrm_least_squares_c(struct dqrm_spmat_type_c *qrm_spmat_c, double *b,
74  double *x, const int nrhs);
75 void dqrm_min_norm_c(struct dqrm_spmat_type_c *qrm_spmat_c, double *b,
76  double *x, const int nrhs);
77 void dqrm_residual_norm_c(struct dqrm_spmat_type_c *qrm_spmat_c, double *b,
78  double *x, const int nrhs, double *nrm);
79 void dqrm_residual_orth_c(struct dqrm_spmat_type_c *qrm_spmat_c, double *r,
80  const int nrhs, double *nrm);
81 
82 void qrm_gseti_c(const char *string, int val);
83 void qrm_ggeti_c(const char *string, int *val);
84 void qrm_ggetii_c(const char *string, long long *val);
85 
86 void dqrm_pseti_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char *string, int val);
87 void dqrm_pgeti_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char *string, int *val);
88 void dqrm_pgetii_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char *string, long long *val);
89 void qrm_err_check_c();
90 
91 enum icntl{
100 
101 enum rcntl{
103 
104 enum ords{
111 
112 enum gstats{
119 
120 
121 
122 };
123 
124 enum yn{
rcntl
Definition: dqrm_mumps.h:101
void qrm_gseti_c(const char *string, int val)
double qrm_swtime()
Definition: qrm_get_wtime.c:40
void dqrm_least_squares_c(struct dqrm_spmat_type_c *qrm_spmat_c, double *b, double *x, const int nrhs)
void dqrm_pgeti_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char *string, int *val)
void dqrm_residual_norm_c(struct dqrm_spmat_type_c *qrm_spmat_c, double *b, double *x, const int nrhs, double *nrm)
void dqrm_pgetii_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char *string, long long *val)
icntl
Definition: dqrm_mumps.h:91
void dqrm_get_r_c(struct dqrm_spmat_type_c *qrm_spmat_c, struct dqrm_spmat_type_c *r)
void dqrm_matnrm_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char ntype, double *nrm)
void dqrm_solve_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char transp, double *b, double *x, const int nrhs)
void dqrm_vecnrm_c(const double *x, const int n, const int nrhs, const char ntype, double *nrm)
void dqrm_readmat_c(char *matfile, struct dqrm_spmat_type_c *qrm_spmat_c)
void dqrm_min_norm_c(struct dqrm_spmat_type_c *qrm_spmat_c, double *b, double *x, const int nrhs)
void qrm_err_check_c()
void qrm_ggetii_c(const char *string, long long *val)
void dqrm_spmat_init_c(struct dqrm_spmat_type_c *qrm_spmat_c)
void dqrm_factorize_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char transp)
void dqrm_pseti_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char *string, int val)
void dqrm_apply_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char transp, double *b, const int nrhs)
yn
Definition: dqrm_mumps.h:124
gstats
Definition: dqrm_mumps.h:112
void dqrm_analyse_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char transp)
ords
Definition: dqrm_mumps.h:104
void dqrm_matmul_c(struct dqrm_spmat_type_c *qrm_spmat_c, const char transp, const double alpha, double *x, const double beta, double *y, const int nrhs)
void dqrm_residual_orth_c(struct dqrm_spmat_type_c *qrm_spmat_c, double *r, const int nrhs, double *nrm)
void dqrm_spmat_destroy_c(struct dqrm_spmat_type_c *qrm_spmat_c)
void qrm_ggeti_c(const char *string, int *val)