File: lapackf.h

package info (click to toggle)
arpack%2B%2B 2.3-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 4,556 kB
  • sloc: cpp: 16,612; sh: 8,819; ansic: 2,312; makefile: 258
file content (207 lines) | stat: -rw-r--r-- 8,454 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
/*
   ARPACK++ v1.2 2/20/2000
   c++ interface to ARPACK code.

   MODULE lapackf.h.
   Interface to LAPACK FORTRAN routines.

   ARPACK Authors
      Richard Lehoucq
      Danny Sorensen
      Chao Yang
      Dept. of Computational & Applied Mathematics
      Rice University
      Houston, Texas
*/

#ifndef LAPACKF_H
#define LAPACKF_H

#include "arch.h"

extern "C"
{

  // Single precision real routines.

  float F77NAME(slapy2)(const float *x, const float *y);

  void F77NAME(slacpy)(const char* uplo, const ARint *m, const ARint *n,
                       const float *a, const ARint *lda, float *b, 
                       const ARint *ldb);

  void F77NAME(sgttrf)(const ARint *n, float *dl, float *d, float *du,
                       float *du2, ARint *ipiv, ARint *info);

  void F77NAME(sgbtrf)(const ARint *m, const ARint *n, const ARint *kl,
                       const ARint *ku, float *ab, const ARint *ldab,
                       ARint *ipiv, ARint *info);

  void F77NAME(sgetrf)(const ARint *m, const ARint *n, float *A,
                       const ARint *lda, ARint *ipiv, ARint *info);

  void F77NAME(sgttrs)(const char* trans, const ARint *n,
                       const ARint *nrhs, const float *dl,
                       const float *d, const float *du,
                       const float *du2, const ARint *ipiv,
                       float* b, const ARint *ldb, ARint *info);

  void F77NAME(sgbtrs)(const char* trans, const ARint *n, 
                       const ARint *kl, const ARint *ku, 
                       const ARint *nrhs, const float *ab, 
                       const ARint *ldab, const ARint *ipiv, 
                       float *b, const ARint *ldb, ARint *info);

  void F77NAME(sgetrs)(const char* trans, const ARint *n,
                       const ARint *nrhs, const float *A,
                       const ARint *lda, const ARint *ipiv,
                       float* b, const ARint *ldb, ARint *info);

  void F77NAME(spttrf)(const ARint *n, float *d, float *e, ARint *info);

  void F77NAME(spttrs)(const ARint *n, const ARint *nrhs,
                       const float *d, const float *e, float *b,
                       const ARint *ldb, ARint *info);

  void F77NAME(ssptrf)(const char* trans, const ARint *n, 
                       float *ap, ARint *ipiv, ARint *info);

  void F77NAME(ssptrs)(const char* trans, const ARint *n, 
                       const ARint *nrhs, float *ap, ARint *ipiv, 
                       float *b, const ARint *ldb, ARint *info);

  // Double precision real routines.

  double F77NAME(dlapy2)(const double *x, const double *y);

  void F77NAME(dlacpy)(const char* uplo, const ARint *m, const ARint *n,
                       const double *a, const ARint *lda, double *b, 
                       const ARint *ldb);

  void F77NAME(dgttrf)(const ARint *n, double *dl, double *d, double *du,
                       double *du2, ARint *ipiv, ARint *info);

  void F77NAME(dgbtrf)(const ARint *m, const ARint *n, const ARint *kl,
                       const ARint *ku, double *ab, const ARint *ldab,
                       ARint *ipiv, ARint *info);

  void F77NAME(dgetrf)(const ARint *m, const ARint *n, double *A,
                       const ARint *lda, ARint *ipiv, ARint *info);

  void F77NAME(dgttrs)(const char* trans, const ARint *n,
                       const ARint *nrhs, const double *dl,
                       const double *d, const double *du,
                       const double *du2, const ARint *ipiv,
                       double* b, const ARint *ldb, ARint *info);

  void F77NAME(dgbtrs)(const char* trans, const ARint *n, 
                       const ARint *kl, const ARint *ku, 
                       const ARint *nrhs, const double *ab, 
                       const ARint *ldab, const ARint *ipiv, 
                       double *b, const ARint *ldb, ARint *info);

  void F77NAME(dgetrs)(const char* trans, const ARint *n,
                       const ARint *nrhs, const double *A,
                       const ARint *lda, const ARint *ipiv,
                       double* b, const ARint *ldb, ARint *info);

  void F77NAME(dpttrf)(const ARint *n, double *d, double *e, ARint *info);

  void F77NAME(dpttrs)(const ARint *n, const ARint *nrhs,
                       const double *d, const double *e, double *b,
                       const ARint *ldb, ARint *info);

  void F77NAME(dsptrf)(const char* trans, const ARint *n, 
                       double *ap, ARint *ipiv, ARint *info);

  void F77NAME(dsptrs)(const char* trans, const ARint *n, 
                       const ARint *nrhs, double *ap, ARint *ipiv, 
                       double *b, const ARint *ldb, ARint *info);

#ifdef ARCOMP_H

  // Single precision complex routines.

  void F77NAME(clacpy)(const char* uplo, const ARint *m, const ARint *n,
                       const arcomplex<float> *a, const ARint *lda, 
                       arcomplex<float> *b, const ARint *ldb);

  void F77NAME(cgttrf)(const ARint *n, arcomplex<float> *dl,
                       arcomplex<float> *d, arcomplex<float> *du,
                       arcomplex<float> *du2, ARint *ipiv,
                       ARint *info);

  void F77NAME(cgbtrf)(const ARint *m, const ARint *n, const ARint *kl,
                       const ARint *ku, arcomplex<float> *ab, 
                       const ARint *ldab, ARint *ipiv, ARint *info);

  void F77NAME(cgetrf)(const ARint *m, const ARint *n, arcomplex<float> *A,
                       const ARint *lda, ARint *ipiv, ARint *info);

  void F77NAME(cgttrs)(const char *trans, const ARint *n,
                       const ARint *nrhs, const arcomplex<float> *dl,
                       const arcomplex<float> *d, const arcomplex<float> *du,
                       const arcomplex<float> *du2, const ARint *ipiv,
                       arcomplex<float>* b, const ARint *ldb,
                       ARint *info);

  void F77NAME(cgbtrs)(const char* trans, const ARint *n, 
                       const ARint *kl, const ARint *ku, 
                       const ARint *nrhs, const arcomplex<float> *ab, 
                       const ARint *ldab, const ARint *ipiv, 
                       arcomplex<float> *b, const ARint *ldb, 
                       ARint *info);

  void F77NAME(cgetrs)(const char* trans, const ARint *n,
                       const ARint *nrhs, const arcomplex<float> *A,
                       const ARint *lda, const ARint *ipiv,
                       arcomplex<float>* b, const ARint *ldb, ARint *info);

  // Double precision complex routines.

  void F77NAME(zlacpy)(const char* uplo, const ARint *m, const ARint *n,
                       const arcomplex<double> *a, const ARint *lda, 
                       arcomplex<double> *b, const ARint *ldb);

  void F77NAME(zgttrf)(const ARint *n, arcomplex<double> *dl,
                       arcomplex<double> *d, arcomplex<double> *du,
                       arcomplex<double> *du2, ARint *ipiv,
                       ARint *info);

  void F77NAME(zgbtrf)(const ARint *m, const ARint *n, const ARint *kl,
                       const ARint *ku, arcomplex<double> *ab, 
                       const ARint *ldab, ARint *ipiv, ARint *info);

  void F77NAME(zgetrf)(const ARint *m, const ARint *n, arcomplex<double> *A,
                       const ARint *lda, ARint *ipiv, ARint *info);

  void F77NAME(zgttrs)(const char *trans, const ARint *n,
                       const ARint *nrhs, const arcomplex<double> *dl,
                       const arcomplex<double> *d, const arcomplex<double> *du,
                       const arcomplex<double> *du2, const ARint *ipiv,
                       arcomplex<double>* b, const ARint *ldb,
                       ARint *info);

  void F77NAME(zgbtrs)(const char* trans, const ARint *n, 
                       const ARint *kl, const ARint *ku, 
                       const ARint *nrhs, const arcomplex<double> *ab, 
                       const ARint *ldab, const ARint *ipiv, 
                       arcomplex<double> *b, const ARint *ldb, 
                       ARint *info);

  void F77NAME(zgetrs)(const char* trans, const ARint *n,
                       const ARint *nrhs, const arcomplex<double> *A,
                       const ARint *lda, const ARint *ipiv,
                       arcomplex<double>* b, const ARint *ldb, ARint *info);

#endif // ARCOMP_H

  void F77NAME(second)(const float *T);

}
#endif // LAPACKF_H