Check that Schur decomposition succeed.

This commit is contained in:
Gael Guennebaud 2017-11-10 10:26:09 +01:00
parent 0a1cc73942
commit 1b2dcf9a47

View File

@ -428,7 +428,8 @@ struct matrix_function_compute<MatrixType, 1>
typedef internal::traits<MatrixType> Traits;
// compute Schur decomposition of A
const ComplexSchur<MatrixType> schurOfA(A);
const ComplexSchur<MatrixType> schurOfA(A);
eigen_assert(schurOfA.info()==Success);
MatrixType T = schurOfA.matrixT();
MatrixType U = schurOfA.matrixU();