Blaze 3.9
orgr2.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_LAPACK_CLAPACK_ORGR2_H_
36#define _BLAZE_MATH_LAPACK_CLAPACK_ORGR2_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
44#include <blaze/util/Complex.h>
46
47
48//=================================================================================================
49//
50// LAPACK FORWARD DECLARATIONS
51//
52//=================================================================================================
53
54//*************************************************************************************************
56#if !defined(INTEL_MKL_VERSION)
57extern "C" {
58
59void sorgr2_( 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 );
61void dorgr2_( 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
72namespace blaze {
73
74//=================================================================================================
75//
76// LAPACK FUNCTIONS TO RECONSTRUCT Q FROM A RQ DECOMPOSITION (ORGR2)
77//
78//=================================================================================================
79
80//*************************************************************************************************
83void orgr2( 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
86void orgr2( 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//*************************************************************************************************
122inline void orgr2( 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 sorgr2_( &m, &n, &k, A, &lda, const_cast<float*>( tau ), work, info );
130}
131//*************************************************************************************************
132
133
134//*************************************************************************************************
164inline void orgr2( 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 dorgr2_( &m, &n, &k, A, &lda, const_cast<double*>( tau ), work, info );
172}
173//*************************************************************************************************
174
175} // namespace blaze
176
177#endif
Header file for the complex data type.
Compile time assertion.
void orgr2(DenseMatrix< MT, SO > &A, const ElementType_t< MT > *tau)
LAPACK kernel for the reconstruction of the orthogonal matrix Q from a RQ decomposition.
Definition: orgr2.h:119
int32_t blas_int_t
Signed integer type used in the BLAS/LAPACK wrapper functions.
Definition: Types.h:64
#define BLAZE_STATIC_ASSERT(expr)
Compile time assertion macro.
Definition: StaticAssert.h:112
Header file for basic BLAS type definitions.