-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathcminpackP.h
70 lines (64 loc) · 2.78 KB
/
cminpackP.h
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
/* Internal header file for cminpack, by Frederic Devernay. */
#ifndef __CMINPACKP_H__
#define __CMINPACKP_H__
#ifndef __CMINPACK_H__
#error "cminpackP.h in an internal cminpack header, and must be included after all other headers (including cminpack.h)"
#endif
#if (defined (USE_BLAS) || defined (USE_LAPACK)) && !defined (__cminpack_double__) && !defined (__cminpack_float__)
#error "cminpack can use cblas and lapack only in double or single precision mode"
#endif
#ifdef USE_BLAS
#ifdef __APPLE__
#include <Accelerate/Accelerate.h>
#define __cminpack_blasint__ int
#else /* !__APPLE__ */
#ifndef __cminpack_blasint__
#define __cminpack_blasint__ int
#endif
__cminpack_real__ __cminpack_blas__(dot)(
const __cminpack_blasint__ *N, const __cminpack_real__ *X, const __cminpack_blasint__ *incX,
const __cminpack_real__ *Y, const __cminpack_blasint__ *incY);
__cminpack_real__ __cminpack_blas__(nrm2)(
const __cminpack_blasint__ *N, const __cminpack_real__ *X, const __cminpack_blasint__ *incX);
void __cminpack_blas__(swap)(
const __cminpack_blasint__ *N, __cminpack_real__ *X, const __cminpack_blasint__ *incX,
__cminpack_real__ *Y, const __cminpack_blasint__ *incY);
void __cminpack_blas__(rot)(
const __cminpack_blasint__ *N, __cminpack_real__ *X, const __cminpack_blasint__ *incX,
__cminpack_real__ *Y, const __cminpack_blasint__ *incY, const __cminpack_real__ *c, const __cminpack_real__ *s);
void __cminpack_blas__(trsv)(
const char *Uplo,
const char *TransA, const char *Diag,
const __cminpack_blasint__ *N, const __cminpack_real__ *A, const __cminpack_blasint__ *lda, __cminpack_real__ *X,
const __cminpack_blasint__ *incX);
#endif /* !__APPLE__ */
#endif /* USE_BLAS */
#ifdef USE_LAPACK
#ifdef __APPLE__
#include <Accelerate/Accelerate.h>
#else /* !__APPLE__ */
#if defined(__LP64__) /* In LP64 match sizes with the 32 bit ABI */
typedef int __CLPK_integer;
typedef int __CLPK_logical;
typedef __CLPK_logical (*__CLPK_L_fp)();
typedef int __CLPK_ftnlen;
#else
typedef long int __CLPK_integer;
typedef long int __CLPK_logical;
typedef __CLPK_logical (*__CLPK_L_fp)();
typedef long int __CLPK_ftnlen;
#endif
void __cminpack_lapack__(lartg_)(
__cminpack_real__ *f, __cminpack_real__ *g, __cminpack_real__ *cs,
__cminpack_real__ *sn, __cminpack_real__ *r__);
void __cminpack_lapack__(geqp3_)(
__CLPK_integer *m, __CLPK_integer *n, __cminpack_real__ *a, __CLPK_integer * lda,
__CLPK_integer *jpvt, __cminpack_real__ *tau, __cminpack_real__ *work, __CLPK_integer *lwork,
__CLPK_integer *info);
void __cminpack_lapack__(geqrf_)(
__CLPK_integer *m, __CLPK_integer *n, __cminpack_real__ *a, __CLPK_integer * lda,
__cminpack_real__ *tau, __cminpack_real__ *work, __CLPK_integer *lwork, __CLPK_integer *info);
#endif /* !__APPLE__ */
#endif
#include "minpackP.h"
#endif /* !__CMINPACKP_H__ */