10 #define EIGEN_RUNTIME_NO_MALLOC 13 #include <Eigen/Eigenvalues> 26 B = MatrixType::Random(dim,dim);
30 Index k=internal::random<Index>(0, dim-1);
31 switch(internal::random<int>(0,10)) {
33 A.row(k).setZero();
break;
35 A.col(k).setZero();
break;
37 B.row(k).setZero();
break;
39 B.col(k).setZero();
break;
52 bool all_zeros =
true;
57 std::cerr <<
"Error: T(" << i <<
"," <<
j <<
") = " << qz.
matrixT()(
i,
j) << std::endl;
62 std::cerr <<
"Error: S(" << i <<
"," <<
j <<
") = " << qz.
matrixS()(
i,
j) << std::endl;
67 std::cerr <<
"Error: S(" << i <<
"," <<
j <<
") = " << qz.
matrixS()(
i,
j) <<
" && S(" << i-1 <<
"," <<
j-1 <<
") = " << qz.
matrixS()(i-1,
j-1) << std::endl;
Matrix< SCALARB, Dynamic, Dynamic, opt_B > B
#define CALL_SUBTEST_4(FUNC)
void real_qz(const MatrixType &m)
const MatrixType & matrixS() const
Returns matrix S in the QZ decomposition.
#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.
const MatrixType & matrixZ() const
Returns matrix Z in the QZ decomposition.
ComputationInfo info() const
Reports whether previous computation was successful.
EIGEN_DECLARE_TEST(real_qz)
#define TEST_SET_BUT_UNUSED_VARIABLE(X)
#define EIGEN_TEST_MAX_SIZE
const MatrixType & matrixT() const
Returns matrix S in the QZ decomposition.
RealQZ & compute(const MatrixType &A, const MatrixType &B, bool computeQZ=true)
Computes QZ decomposition of given matrix.
#define CALL_SUBTEST_2(FUNC)
The matrix class, also used for vectors and row-vectors.
const MatrixType & matrixQ() const
Returns matrix Q in the QZ decomposition.