diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-11-10 10:26:09 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-11-10 10:26:09 +0100 |
commit | 1b2dcf9a4742644e86a3da10d8b027c841ae9861 (patch) | |
tree | 997e182235f3504ffa8e0e6906abbbd1ae9d496b /unsupported | |
parent | 0a1cc7394226c7439b586f5bac3e94cf287622f1 (diff) |
Check that Schur decomposition succeed.
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h index 3f7d77710..ef50c46a9 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h @@ -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(); |