Mercurial > octave
changeset 29828:e4c65b8276a6
xpow.cc: Move call to eig() outside of try/catch blocks for better error reporting (bug #60786).
* xpow.cc (xpow (double, Matrix)): Move call to EIG outside of try/catch block
which allows better reporting from EIG if it fails.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 28 Jun 2021 10:15:30 -0700 |
parents | 004e63a7a501 |
children | 212322c0e44e |
files | libinterp/corefcn/xpow.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/xpow.cc Mon Jun 28 09:34:49 2021 -0700 +++ b/libinterp/corefcn/xpow.cc Mon Jun 28 10:15:30 2021 -0700 @@ -125,10 +125,10 @@ if (nr != nc) err_nonsquare_matrix (); + EIG b_eig (b); + try { - EIG b_eig (b); - ComplexColumnVector lambda (b_eig.eigenvalues ()); ComplexMatrix Q (b_eig.right_eigenvectors ());