We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e169c5 commit 297c302Copy full SHA for 297c302
src/TiledArray/math/solvers/cp/cp.h
@@ -314,7 +314,7 @@ class CP {
314
// MtKRP);
315
try {
316
MtKRP = math::linalg::cholesky_solve(W, MtKRP);
317
- } catch (std::runtime_error& ex) {
+ } catch (std::exception& ex){
318
// if W is near-singular try LU instead of Cholesky
319
if (std::string(ex.what()).find("lapack::posv failed") !=
320
std::string::npos) {
0 commit comments