Warning, file /include/eigen3/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033 #ifndef EIGEN_REAL_SCHUR_LAPACKE_H
0034 #define EIGEN_REAL_SCHUR_LAPACKE_H
0035
0036 namespace Eigen {
0037
0038
0039
0040 #define EIGEN_LAPACKE_SCHUR_REAL(EIGTYPE, LAPACKE_TYPE, LAPACKE_PREFIX, LAPACKE_PREFIX_U, EIGCOLROW, LAPACKE_COLROW) \
0041 template<> template<typename InputType> inline \
0042 RealSchur<Matrix<EIGTYPE, Dynamic, Dynamic, EIGCOLROW> >& \
0043 RealSchur<Matrix<EIGTYPE, Dynamic, Dynamic, EIGCOLROW> >::compute(const EigenBase<InputType>& matrix, bool computeU) \
0044 { \
0045 eigen_assert(matrix.cols() == matrix.rows()); \
0046 \
0047 lapack_int n = internal::convert_index<lapack_int>(matrix.cols()), sdim, info; \
0048 lapack_int matrix_order = LAPACKE_COLROW; \
0049 char jobvs, sort='N'; \
0050 LAPACK_##LAPACKE_PREFIX_U##_SELECT2 select = 0; \
0051 jobvs = (computeU) ? 'V' : 'N'; \
0052 m_matU.resize(n, n); \
0053 lapack_int ldvs = internal::convert_index<lapack_int>(m_matU.outerStride()); \
0054 m_matT = matrix; \
0055 lapack_int lda = internal::convert_index<lapack_int>(m_matT.outerStride()); \
0056 Matrix<EIGTYPE, Dynamic, Dynamic> wr, wi; \
0057 wr.resize(n, 1); wi.resize(n, 1); \
0058 info = LAPACKE_##LAPACKE_PREFIX##gees( matrix_order, jobvs, sort, select, n, (LAPACKE_TYPE*)m_matT.data(), lda, &sdim, (LAPACKE_TYPE*)wr.data(), (LAPACKE_TYPE*)wi.data(), (LAPACKE_TYPE*)m_matU.data(), ldvs ); \
0059 if(info == 0) \
0060 m_info = Success; \
0061 else \
0062 m_info = NoConvergence; \
0063 \
0064 m_isInitialized = true; \
0065 m_matUisUptodate = computeU; \
0066 return *this; \
0067 \
0068 }
0069
0070 EIGEN_LAPACKE_SCHUR_REAL(double, double, d, D, ColMajor, LAPACK_COL_MAJOR)
0071 EIGEN_LAPACKE_SCHUR_REAL(float, float, s, S, ColMajor, LAPACK_COL_MAJOR)
0072 EIGEN_LAPACKE_SCHUR_REAL(double, double, d, D, RowMajor, LAPACK_ROW_MAJOR)
0073 EIGEN_LAPACKE_SCHUR_REAL(float, float, s, S, RowMajor, LAPACK_ROW_MAJOR)
0074
0075 }
0076
0077 #endif