12 #include <Eigen/Eigenvalues> 38 template<
typename MatrixType>
void schur(
int size = MatrixType::ColsAtCompileTime)
41 for(
int counter = 0; counter <
g_repeat; ++counter) {
74 rs3.setMaxIterations(1).compute(A);
80 Atriangular.template triangularView<StrictlyLower>().
setZero();
81 rs3.setMaxIterations(1).compute(Atriangular);
92 if (size > 2 && size < 20)
95 A(0,0) = std::numeric_limits<typename MatrixType::Scalar>::quiet_NaN();
#define VERIFY_RAISES_ASSERT(a)
#define CALL_SUBTEST_4(FUNC)
cout<< "Here is a random 4x4 matrix, A:"<< endl<< A<< endl<< endl;ComplexSchur< MatrixXcf > schurOfA(A, false)
#define CALL_SUBTEST_3(FUNC)
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
#define VERIFY_IS_APPROX(a, b)
#define VERIFY_IS_EQUAL(a, b)
#define CALL_SUBTEST_1(FUNC)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Eigen::Triplet< double > T
RealSchur & compute(const EigenBase< InputType > &matrix, bool computeU=true)
Computes Schur decomposition of given matrix.
const MatrixType & matrixT() const
Returns the quasi-triangular matrix in the Schur decomposition.
#define CALL_SUBTEST_5(FUNC)
const MatrixType & matrixU() const
Returns the orthogonal matrix in the Schur decomposition.
RealSchur & setMaxIterations(Index maxIters)
Sets the maximum number of iterations allowed.
#define EIGEN_TEST_MAX_SIZE
void verifyIsQuasiTriangular(const MatrixType &T)
#define CALL_SUBTEST_2(FUNC)
void schur(int size=MatrixType::ColsAtCompileTime)
EIGEN_DECLARE_TEST(schur_real)
ComputationInfo info() const
Reports whether previous computation was successful.
The matrix class, also used for vectors and row-vectors.