[97] | 1 | /* |
---|
| 2 | * Automatically Tuned Linear Algebra Software v3.8.3 |
---|
| 3 | * (C) Copyright 1999 R. Clint Whaley |
---|
| 4 | * |
---|
| 5 | * Redistribution and use in source and binary forms, with or without |
---|
| 6 | * modification, are permitted provided that the following conditions |
---|
| 7 | * are met: |
---|
| 8 | * 1. Redistributions of source code must retain the above copyright |
---|
| 9 | * notice, this list of conditions and the following disclaimer. |
---|
| 10 | * 2. Redistributions in binary form must reproduce the above copyright |
---|
| 11 | * notice, this list of conditions, and the following disclaimer in the |
---|
| 12 | * documentation and/or other materials provided with the distribution. |
---|
| 13 | * 3. The name of the ATLAS group or the names of its contributers may |
---|
| 14 | * not be used to endorse or promote products derived from this |
---|
| 15 | * software without specific written permission. |
---|
| 16 | * |
---|
| 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
---|
| 18 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
---|
| 19 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
---|
| 20 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ATLAS GROUP OR ITS CONTRIBUTORS |
---|
| 21 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
---|
| 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
---|
| 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
---|
| 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
---|
| 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
---|
| 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
---|
| 27 | * POSSIBILITY OF SUCH DAMAGE. |
---|
| 28 | * |
---|
| 29 | */ |
---|
| 30 | |
---|
| 31 | #ifndef CLAPACK_H |
---|
| 32 | |
---|
| 33 | #define CLAPACK_H |
---|
| 34 | #include "cblas.h" |
---|
| 35 | |
---|
| 36 | #ifndef ATLAS_ORDER |
---|
| 37 | #define ATLAS_ORDER CBLAS_ORDER |
---|
| 38 | #endif |
---|
| 39 | #ifndef ATLAS_UPLO |
---|
| 40 | #define ATLAS_UPLO CBLAS_UPLO |
---|
| 41 | #endif |
---|
| 42 | #ifndef ATLAS_DIAG |
---|
| 43 | #define ATLAS_DIAG CBLAS_DIAG |
---|
| 44 | #endif |
---|
| 45 | int clapack_sgesv(const enum CBLAS_ORDER Order, const int N, const int NRHS, |
---|
| 46 | float *A, const int lda, int *ipiv, |
---|
| 47 | float *B, const int ldb); |
---|
| 48 | int clapack_sgetrf(const enum CBLAS_ORDER Order, const int M, const int N, |
---|
| 49 | float *A, const int lda, int *ipiv); |
---|
| 50 | int clapack_sgetrs |
---|
| 51 | (const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE Trans, |
---|
| 52 | const int N, const int NRHS, const float *A, const int lda, |
---|
| 53 | const int *ipiv, float *B, const int ldb); |
---|
| 54 | int clapack_sgetri(const enum CBLAS_ORDER Order, const int N, float *A, |
---|
| 55 | const int lda, const int *ipiv); |
---|
| 56 | int clapack_sposv(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 57 | const int N, const int NRHS, float *A, const int lda, |
---|
| 58 | float *B, const int ldb); |
---|
| 59 | int clapack_spotrf(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 60 | const int N, float *A, const int lda); |
---|
| 61 | int clapack_spotrs(const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, |
---|
| 62 | const int N, const int NRHS, const float *A, const int lda, |
---|
| 63 | float *B, const int ldb); |
---|
| 64 | int clapack_spotri(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 65 | const int N, float *A, const int lda); |
---|
| 66 | int clapack_slauum(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 67 | const int N, float *A, const int lda); |
---|
| 68 | int clapack_strtri(const enum ATLAS_ORDER Order,const enum ATLAS_UPLO Uplo, |
---|
| 69 | const enum ATLAS_DIAG Diag,const int N, float *A, const int lda); |
---|
| 70 | |
---|
| 71 | int clapack_dgesv(const enum CBLAS_ORDER Order, const int N, const int NRHS, |
---|
| 72 | double *A, const int lda, int *ipiv, |
---|
| 73 | double *B, const int ldb); |
---|
| 74 | int clapack_dgetrf(const enum CBLAS_ORDER Order, const int M, const int N, |
---|
| 75 | double *A, const int lda, int *ipiv); |
---|
| 76 | int clapack_dgetrs |
---|
| 77 | (const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE Trans, |
---|
| 78 | const int N, const int NRHS, const double *A, const int lda, |
---|
| 79 | const int *ipiv, double *B, const int ldb); |
---|
| 80 | int clapack_dgetri(const enum CBLAS_ORDER Order, const int N, double *A, |
---|
| 81 | const int lda, const int *ipiv); |
---|
| 82 | int clapack_dposv(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 83 | const int N, const int NRHS, double *A, const int lda, |
---|
| 84 | double *B, const int ldb); |
---|
| 85 | int clapack_dpotrf(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 86 | const int N, double *A, const int lda); |
---|
| 87 | int clapack_dpotrs(const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, |
---|
| 88 | const int N, const int NRHS, const double *A, const int lda, |
---|
| 89 | double *B, const int ldb); |
---|
| 90 | int clapack_dpotri(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 91 | const int N, double *A, const int lda); |
---|
| 92 | int clapack_dlauum(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 93 | const int N, double *A, const int lda); |
---|
| 94 | int clapack_dtrtri(const enum ATLAS_ORDER Order,const enum ATLAS_UPLO Uplo, |
---|
| 95 | const enum ATLAS_DIAG Diag,const int N, double *A, const int lda); |
---|
| 96 | |
---|
| 97 | int clapack_cgesv(const enum CBLAS_ORDER Order, const int N, const int NRHS, |
---|
| 98 | void *A, const int lda, int *ipiv, |
---|
| 99 | void *B, const int ldb); |
---|
| 100 | int clapack_cgetrf(const enum CBLAS_ORDER Order, const int M, const int N, |
---|
| 101 | void *A, const int lda, int *ipiv); |
---|
| 102 | int clapack_cgetrs |
---|
| 103 | (const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE Trans, |
---|
| 104 | const int N, const int NRHS, const void *A, const int lda, |
---|
| 105 | const int *ipiv, void *B, const int ldb); |
---|
| 106 | int clapack_cgetri(const enum CBLAS_ORDER Order, const int N, void *A, |
---|
| 107 | const int lda, const int *ipiv); |
---|
| 108 | int clapack_cposv(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 109 | const int N, const int NRHS, void *A, const int lda, |
---|
| 110 | void *B, const int ldb); |
---|
| 111 | int clapack_cpotrf(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 112 | const int N, void *A, const int lda); |
---|
| 113 | int clapack_cpotrs(const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, |
---|
| 114 | const int N, const int NRHS, const void *A, const int lda, |
---|
| 115 | void *B, const int ldb); |
---|
| 116 | int clapack_cpotri(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 117 | const int N, void *A, const int lda); |
---|
| 118 | int clapack_clauum(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 119 | const int N, void *A, const int lda); |
---|
| 120 | int clapack_ctrtri(const enum ATLAS_ORDER Order,const enum ATLAS_UPLO Uplo, |
---|
| 121 | const enum ATLAS_DIAG Diag,const int N, void *A, const int lda); |
---|
| 122 | |
---|
| 123 | int clapack_zgesv(const enum CBLAS_ORDER Order, const int N, const int NRHS, |
---|
| 124 | void *A, const int lda, int *ipiv, |
---|
| 125 | void *B, const int ldb); |
---|
| 126 | int clapack_zgetrf(const enum CBLAS_ORDER Order, const int M, const int N, |
---|
| 127 | void *A, const int lda, int *ipiv); |
---|
| 128 | int clapack_zgetrs |
---|
| 129 | (const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE Trans, |
---|
| 130 | const int N, const int NRHS, const void *A, const int lda, |
---|
| 131 | const int *ipiv, void *B, const int ldb); |
---|
| 132 | int clapack_zgetri(const enum CBLAS_ORDER Order, const int N, void *A, |
---|
| 133 | const int lda, const int *ipiv); |
---|
| 134 | int clapack_zposv(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 135 | const int N, const int NRHS, void *A, const int lda, |
---|
| 136 | void *B, const int ldb); |
---|
| 137 | int clapack_zpotrf(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 138 | const int N, void *A, const int lda); |
---|
| 139 | int clapack_zpotrs(const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, |
---|
| 140 | const int N, const int NRHS, const void *A, const int lda, |
---|
| 141 | void *B, const int ldb); |
---|
| 142 | int clapack_zpotri(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 143 | const int N, void *A, const int lda); |
---|
| 144 | int clapack_zlauum(const enum ATLAS_ORDER Order, const enum ATLAS_UPLO Uplo, |
---|
| 145 | const int N, void *A, const int lda); |
---|
| 146 | int clapack_ztrtri(const enum ATLAS_ORDER Order,const enum ATLAS_UPLO Uplo, |
---|
| 147 | const enum ATLAS_DIAG Diag,const int N, void *A, const int lda); |
---|
| 148 | |
---|
| 149 | #endif |
---|