34 #ifndef EIGEN_QR_MKL_H
35 #define EIGEN_QR_MKL_H
37 #include "../Core/util/MKL_support.h"
45 #define EIGEN_MKL_QR_NOPIV(EIGTYPE, MKLTYPE, MKLPREFIX) \
46 template<typename MatrixQR, typename HCoeffs> \
47 struct householder_qr_inplace_blocked<MatrixQR, HCoeffs, EIGTYPE, true> \
49 static void run(MatrixQR& mat, HCoeffs& hCoeffs, Index = 32, \
50 typename MatrixQR::Scalar* = 0) \
52 lapack_int m = (lapack_int) mat.rows(); \
53 lapack_int n = (lapack_int) mat.cols(); \
54 lapack_int lda = (lapack_int) mat.outerStride(); \
55 lapack_int matrix_order = (MatrixQR::IsRowMajor) ? LAPACK_ROW_MAJOR : LAPACK_COL_MAJOR; \
56 LAPACKE_##MKLPREFIX##geqrf( matrix_order, m, n, (MKLTYPE*)mat.data(), lda, (MKLTYPE*)hCoeffs.data()); \
57 hCoeffs.adjointInPlace(); \
61 EIGEN_MKL_QR_NOPIV(
double,
double, d)
62 EIGEN_MKL_QR_NOPIV(
float,
float, s)
63 EIGEN_MKL_QR_NOPIV(dcomplex, MKL_Complex16, z)
64 EIGEN_MKL_QR_NOPIV(scomplex, MKL_Complex8, c)
70 #endif // EIGEN_QR_MKL_H
Definition: Eigen_Colamd.h:54