33 #ifndef EIGEN_REAL_SCHUR_MKL_H 34 #define EIGEN_REAL_SCHUR_MKL_H 42 #define EIGEN_MKL_SCHUR_REAL(EIGTYPE, MKLTYPE, MKLPREFIX, MKLPREFIX_U, EIGCOLROW, MKLCOLROW) \ 44 RealSchur<Matrix<EIGTYPE, Dynamic, Dynamic, EIGCOLROW> >& \ 45 RealSchur<Matrix<EIGTYPE, Dynamic, Dynamic, EIGCOLROW> >::compute(const Matrix<EIGTYPE, Dynamic, Dynamic, EIGCOLROW>& matrix, bool computeU) \ 47 typedef Matrix<EIGTYPE, Dynamic, Dynamic, EIGCOLROW> MatrixType; \ 48 typedef MatrixType::Scalar Scalar; \ 49 typedef MatrixType::RealScalar RealScalar; \ 51 eigen_assert(matrix.cols() == matrix.rows()); \ 53 lapack_int n = matrix.cols(), sdim, info; \ 54 lapack_int lda = matrix.outerStride(); \ 55 lapack_int matrix_order = MKLCOLROW; \ 56 char jobvs, sort='N'; \ 57 LAPACK_##MKLPREFIX_U##_SELECT2 select = 0; \ 58 jobvs = (computeU) ? 'V' : 'N'; \ 59 m_matU.resize(n, n); \ 60 lapack_int ldvs = m_matU.outerStride(); \ 62 Matrix<EIGTYPE, Dynamic, Dynamic> wr, wi; \ 63 wr.resize(n, 1); wi.resize(n, 1); \ 64 info = LAPACKE_##MKLPREFIX##gees( matrix_order, jobvs, sort, select, n, (MKLTYPE*)m_matT.data(), lda, &sdim, (MKLTYPE*)wr.data(), (MKLTYPE*)wi.data(), (MKLTYPE*)m_matU.data(), ldvs ); \ 68 m_info = NoConvergence; \ 70 m_isInitialized = true; \ 71 m_matUisUptodate = computeU; \ 83 #endif // EIGEN_REAL_SCHUR_MKL_H
#define EIGEN_MKL_SCHUR_REAL(EIGTYPE, MKLTYPE, MKLPREFIX, MKLPREFIX_U, EIGCOLROW, MKLCOLROW)