You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This indicates that the matrix is singular, and the determinant is zero; for inverse() this is an error
1469
+
gsl_matrix_free(A);
1470
+
gsl_permutation_free(p);
1469
1471
EIDOS_TERMINATION << "ERROR (Eidos_ExecuteFunction_inverse): in function inverse() x must not be singular (i.e., must be invertible). You can use det() to check for singularity prior to calling inverse()." << EidosTerminate(nullptr);
// This indicates that the matrix is singular, and the determinant is zero; for inverse() this is an error
1487
+
gsl_matrix_free(A);
1488
+
gsl_permutation_free(p);
1489
+
gsl_matrix_free(inverse);
1485
1490
EIDOS_TERMINATION << "ERROR (Eidos_ExecuteFunction_inverse): in function inverse() x must not be singular (i.e., must be invertible). You can use det() to check for singularity prior to calling inverse()." << EidosTerminate(nullptr);
1486
1491
}
1487
1492
elseif (result != GSL_SUCCESS)
1488
1493
{
1489
1494
// Some other error occurred
1495
+
gsl_matrix_free(A);
1496
+
gsl_permutation_free(p);
1497
+
gsl_matrix_free(inverse);
1490
1498
EIDOS_TERMINATION << "ERROR (Eidos_ExecuteFunction_inverse): in function inverse() an internal GSL error occurred (code == " << result << ")." << EidosTerminate(nullptr);
0 commit comments