From 1b2dcf9a4742644e86a3da10d8b027c841ae9861 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 10 Nov 2017 10:26:09 +0100 Subject: [PATCH] Check that Schur decomposition succeed. --- unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 typedef internal::traits Traits; // compute Schur decomposition of A - const ComplexSchur schurOfA(A); + const ComplexSchur schurOfA(A); + eigen_assert(schurOfA.info()==Success); MatrixType T = schurOfA.matrixT(); MatrixType U = schurOfA.matrixU();