Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
lapack
clapack
trtri.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_LAPACK_CLAPACK_TRTRI_H_
36
#define _BLAZE_MATH_LAPACK_CLAPACK_TRTRI_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/blas/Types.h
>
44
#include <
blaze/util/Complex.h
>
45
#include <
blaze/util/StaticAssert.h
>
46
#include <
blaze/util/Types.h
>
47
48
49
//=================================================================================================
50
//
51
// LAPACK FORWARD DECLARATIONS
52
//
53
//=================================================================================================
54
55
//*************************************************************************************************
57
#if !defined(INTEL_MKL_VERSION) && !defined(BLAS_H)
58
extern
"C"
{
59
60
void
strtri_(
char
* uplo,
char
* diag,
blaze::blas_int_t
* n,
float
* A,
blaze::blas_int_t
* lda,
61
blaze::blas_int_t
* info,
blaze::fortran_charlen_t
nuplo,
blaze::fortran_charlen_t
ndiag );
62
void
dtrtri_(
char
* uplo,
char
* diag,
blaze::blas_int_t
* n,
double
* A,
blaze::blas_int_t
* lda,
63
blaze::blas_int_t
* info,
blaze::fortran_charlen_t
nuplo,
blaze::fortran_charlen_t
ndiag );
64
void
ctrtri_(
char
* uplo,
char
* diag,
blaze::blas_int_t
* n,
float
* A,
blaze::blas_int_t
* lda,
65
blaze::blas_int_t
* info,
blaze::fortran_charlen_t
nuplo,
blaze::fortran_charlen_t
ndiag );
66
void
ztrtri_(
char
* uplo,
char
* diag,
blaze::blas_int_t
* n,
double
* A,
blaze::blas_int_t
* lda,
67
blaze::blas_int_t
* info,
blaze::fortran_charlen_t
nuplo,
blaze::fortran_charlen_t
ndiag );
68
69
}
70
#endif
72
//*************************************************************************************************
73
74
75
76
77
namespace
blaze {
78
79
//=================================================================================================
80
//
81
// LAPACK TRIANGULAR MATRIX INVERSION FUNCTIONS (TRTRI)
82
//
83
//=================================================================================================
84
85
//*************************************************************************************************
88
void
trtri
(
char
uplo,
char
diag,
blas_int_t
n,
float
* A,
blas_int_t
lda,
89
blas_int_t
* info );
90
91
void
trtri
(
char
uplo,
char
diag,
blas_int_t
n,
double
* A,
blas_int_t
lda,
92
blas_int_t
* info );
93
94
void
trtri
(
char
uplo,
char
diag,
blas_int_t
n, complex<float>* A,
blas_int_t
lda,
95
blas_int_t
* info );
96
97
void
trtri
(
char
uplo,
char
diag,
blas_int_t
n, complex<double>* A,
blas_int_t
lda,
98
blas_int_t
* info );
100
//*************************************************************************************************
101
102
103
//*************************************************************************************************
134
inline
void
trtri
(
char
uplo,
char
diag,
blas_int_t
n,
float
* A,
blas_int_t
lda,
135
blas_int_t
* info )
136
{
137
#if defined(INTEL_MKL_VERSION)
138
BLAZE_STATIC_ASSERT
(
sizeof
( MKL_INT ) ==
sizeof
(
blas_int_t
) );
139
#endif
140
141
strtri_( &uplo, &diag, &n, A, &lda, info
142
#
if
!defined(INTEL_MKL_VERSION) && !defined(BLAS_H)
143
,
blaze::fortran_charlen_t
(1),
blaze::fortran_charlen_t
(1)
144
#endif
145
);
146
}
147
//*************************************************************************************************
148
149
150
//*************************************************************************************************
181
inline
void
trtri
(
char
uplo,
char
diag,
blas_int_t
n,
double
* A,
blas_int_t
lda,
182
blas_int_t
* info )
183
{
184
#if defined(INTEL_MKL_VERSION)
185
BLAZE_STATIC_ASSERT
(
sizeof
( MKL_INT ) ==
sizeof
(
blas_int_t
) );
186
#endif
187
188
dtrtri_( &uplo, &diag, &n, A, &lda, info
189
#
if
!defined(INTEL_MKL_VERSION) && !defined(BLAS_H)
190
,
blaze::fortran_charlen_t
(1),
blaze::fortran_charlen_t
(1)
191
#endif
192
);
193
}
194
//*************************************************************************************************
195
196
197
//*************************************************************************************************
228
inline
void
trtri
(
char
uplo,
char
diag,
blas_int_t
n, complex<float>* A,
blas_int_t
lda,
229
blas_int_t
* info )
230
{
231
BLAZE_STATIC_ASSERT
(
sizeof
( complex<float> ) == 2UL*
sizeof
(
float
) );
232
233
#if defined(INTEL_MKL_VERSION)
234
BLAZE_STATIC_ASSERT
(
sizeof
( MKL_INT ) ==
sizeof
(
blas_int_t
) );
235
BLAZE_STATIC_ASSERT
(
sizeof
( MKL_Complex8 ) ==
sizeof
( complex<float> ) );
236
using
ET = MKL_Complex8;
237
#else
238
using
ET = float;
239
#endif
240
241
ctrtri_( &uplo, &diag, &n,
reinterpret_cast<
ET*
>
( A ), &lda, info
242
#
if
!defined(INTEL_MKL_VERSION) && !defined(BLAS_H)
243
,
blaze::fortran_charlen_t
(1),
blaze::fortran_charlen_t
(1)
244
#endif
245
);
246
}
247
//*************************************************************************************************
248
249
250
//*************************************************************************************************
281
inline
void
trtri
(
char
uplo,
char
diag,
blas_int_t
n, complex<double>* A,
blas_int_t
lda,
282
blas_int_t
* info )
283
{
284
BLAZE_STATIC_ASSERT
(
sizeof
( complex<double> ) == 2UL*
sizeof
(
double
) );
285
286
#if defined(INTEL_MKL_VERSION)
287
BLAZE_STATIC_ASSERT
(
sizeof
( MKL_INT ) ==
sizeof
(
blas_int_t
) );
288
BLAZE_STATIC_ASSERT
(
sizeof
( MKL_Complex16 ) ==
sizeof
( complex<double> ) );
289
using
ET = MKL_Complex16;
290
#else
291
using
ET = double;
292
#endif
293
294
ztrtri_( &uplo, &diag, &n,
reinterpret_cast<
ET*
>
( A ), &lda, info
295
#
if
!defined(INTEL_MKL_VERSION) && !defined(BLAS_H)
296
,
blaze::fortran_charlen_t
(1),
blaze::fortran_charlen_t
(1)
297
#endif
298
);
299
}
300
//*************************************************************************************************
301
302
}
// namespace blaze
303
304
#endif
Complex.h
Header file for the complex data type.
StaticAssert.h
Compile time assertion.
blaze::trtri
void trtri(char uplo, char diag, blas_int_t n, float *A, blas_int_t lda, blas_int_t *info)
LAPACK kernel for the inversion of the given dense triangular single precision column-major matrix.
Definition
trtri.h:134
blaze::blas_int_t
int32_t blas_int_t
Signed integer type used in the BLAS/LAPACK wrapper functions.
Definition
Types.h:64
BLAZE_STATIC_ASSERT
#define BLAZE_STATIC_ASSERT(expr)
Compile time assertion macro.
Definition
StaticAssert.h:112
blaze::fortran_charlen_t
size_t fortran_charlen_t
Type of the hidden arguments of character type within a Fortran forward declaration.
Definition
Types.h:186
Types.h
Header file for basic BLAS type definitions.
Types.h
Header file for basic type definitions.
Generated by
1.18.0