52inline int spotrf(
char uplo,
int n,
float* A,
int lda)
54 if (!(uplo ==
'U' || uplo ==
'L')) {
55 printf(
"magma_spotrf_wrapper: wrong uplo\n");
58 magma_uplo_t magma_uplo = (uplo ==
'U') ? MagmaUpper : MagmaLower;
60 magma_spotrf_gpu(magma_uplo, n, A, lda, &info);
64inline int dpotrf(
char uplo,
int n,
double* A,
int lda)
66 if (!(uplo ==
'U' || uplo ==
'L')) {
67 printf(
"magma_dpotrf_wrapper: wrong uplo\n");
70 magma_uplo_t magma_uplo = (uplo ==
'U') ? MagmaUpper : MagmaLower;
72 magma_dpotrf_gpu(magma_uplo, n, A, lda, &info);
76inline int cpotrf(
char uplo,
int n, magmaFloatComplex* A,
int lda)
78 if (!(uplo ==
'U' || uplo ==
'L')) {
79 printf(
"magma_cpotrf_wrapper: wrong uplo\n");
82 magma_uplo_t magma_uplo = (uplo ==
'U') ? MagmaUpper : MagmaLower;
84 magma_cpotrf_gpu(magma_uplo, n, A, lda, &info);
88inline int zpotrf(
char uplo,
int n, magmaDoubleComplex* A,
int lda)
90 if (!(uplo ==
'U' || uplo ==
'L')) {
91 printf(
"magma_zpotrf_wrapper: wrong uplo\n");
94 magma_uplo_t magma_uplo = (uplo ==
'U') ? MagmaUpper : MagmaLower;
96 magma_zpotrf_gpu(magma_uplo, n, A, lda, &info);
100inline int strtri(
char uplo,
int n,
float* A,
int lda)
102 if (!(uplo ==
'U' || uplo ==
'L')) {
103 printf(
"magma_strtri_wrapper: wrong uplo\n");
106 magma_uplo_t magma_uplo = (uplo ==
'U') ? MagmaUpper : MagmaLower;
108 magma_strtri_gpu(magma_uplo, MagmaNonUnit, n, A, lda, &info);
112inline int dtrtri(
char uplo,
int n,
double* A,
int lda)
114 if (!(uplo ==
'U' || uplo ==
'L')) {
115 printf(
"magma_dtrtri_wrapper: wrong uplo\n");
118 magma_uplo_t magma_uplo = (uplo ==
'U') ? MagmaUpper : MagmaLower;
120 magma_dtrtri_gpu(magma_uplo, MagmaNonUnit, n, A, lda, &info);
124inline int ctrtri(
char uplo,
int n, magmaFloatComplex* A,
int lda)
126 if (!(uplo ==
'U' || uplo ==
'L')) {
127 printf(
"magma_ctrtri_wrapper: wrong uplo\n");
130 magma_uplo_t magma_uplo = (uplo ==
'U') ? MagmaUpper : MagmaLower;
132 magma_ctrtri_gpu(magma_uplo, MagmaNonUnit, n, A, lda, &info);
136inline int ztrtri(
char uplo,
int n, magmaDoubleComplex* A,
int lda)
138 if (!(uplo ==
'U' || uplo ==
'L')) {
139 printf(
"magma_ztrtri_wrapper: wrong uplo\n");
142 magma_uplo_t magma_uplo = (uplo ==
'U') ? MagmaUpper : MagmaLower;
144 magma_ztrtri_gpu(magma_uplo, MagmaNonUnit, n, A, lda, &info);
Internal MAGMA file which is missing in the standard installation.
Namespace of the SIRIUS library.