Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
lapack
clapack
org2l.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_LAPACK_CLAPACK_ORG2L_H_
36
#define _BLAZE_MATH_LAPACK_CLAPACK_ORG2L_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
47
48
//=================================================================================================
49
//
50
// LAPACK FORWARD DECLARATIONS
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
56
#if !defined(INTEL_MKL_VERSION)
57
extern
"C"
{
58
59
void
sorg2l_(
blaze::blas_int_t
* m,
blaze::blas_int_t
* n,
blaze::blas_int_t
* k,
float
* A,
60
blaze::blas_int_t
* lda,
float
* tau,
float
* work,
blaze::blas_int_t
* info );
61
void
dorg2l_(
blaze::blas_int_t
* m,
blaze::blas_int_t
* n,
blaze::blas_int_t
* k,
double
* A,
62
blaze::blas_int_t
* lda,
double
* tau,
double
* work,
blaze::blas_int_t
* info );
63
64
}
65
#endif
67
//*************************************************************************************************
68
69
70
71
72
namespace
blaze {
73
74
//=================================================================================================
75
//
76
// LAPACK FUNCTIONS TO RECONSTRUCT Q FROM A QL DECOMPOSITION (ORG2L)
77
//
78
//=================================================================================================
79
80
//*************************************************************************************************
83
void
org2l
(
blas_int_t
m,
blas_int_t
n,
blas_int_t
k,
float
* A,
blas_int_t
lda,
84
const
float
* tau,
float
* work,
blas_int_t
* info );
85
86
void
org2l
(
blas_int_t
m,
blas_int_t
n,
blas_int_t
k,
double
* A,
blas_int_t
lda,
87
const
double
* tau,
double
* work,
blas_int_t
* info );
89
//*************************************************************************************************
90
91
92
//*************************************************************************************************
122
inline
void
org2l
(
blas_int_t
m,
blas_int_t
n,
blas_int_t
k,
float
* A,
blas_int_t
lda,
123
const
float
* tau,
float
* work,
blas_int_t
* info )
124
{
125
#if defined(INTEL_MKL_VERSION)
126
BLAZE_STATIC_ASSERT
(
sizeof
( MKL_INT ) ==
sizeof
(
blas_int_t
) );
127
#endif
128
129
sorg2l_( &m, &n, &k, A, &lda,
const_cast<
float
*
>
( tau ), work, info );
130
}
131
//*************************************************************************************************
132
133
134
//*************************************************************************************************
164
inline
void
org2l
(
blas_int_t
m,
blas_int_t
n,
blas_int_t
k,
double
* A,
blas_int_t
lda,
165
const
double
* tau,
double
* work,
blas_int_t
* info )
166
{
167
#if defined(INTEL_MKL_VERSION)
168
BLAZE_STATIC_ASSERT
(
sizeof
( MKL_INT ) ==
sizeof
(
blas_int_t
) );
169
#endif
170
171
dorg2l_( &m, &n, &k, A, &lda,
const_cast<
double
*
>
( tau ), work, info );
172
}
173
//*************************************************************************************************
174
175
}
// namespace blaze
176
177
#endif
Complex.h
Header file for the complex data type.
StaticAssert.h
Compile time assertion.
blaze::org2l
void org2l(blas_int_t m, blas_int_t n, blas_int_t k, float *A, blas_int_t lda, const float *tau, float *work, blas_int_t *info)
LAPACK kernel for the reconstruction of the orthogonal matrix Q from a QL decomposition.
Definition
org2l.h:122
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
Types.h
Header file for basic BLAS type definitions.
Generated by
1.18.0