This commit is contained in:
conrad
2024-11-05 18:53:25 +10:00
parent d484a3d7ad
commit da8ea7ea20
+4
View File
@@ -28,6 +28,10 @@ auxlib::inv(Mat<eT>& A)
{
arma_debug_sigprint();
// NOTE: given a matrix with NaN values, getrf() and getri() do not necessarily fail,
// NOTE: and can produce matrices with NaN values.
// NOTE: we're not checking for non-finite values to avoid breaking existing user code.
if(A.is_empty()) { return true; }
#if defined(ARMA_USE_LAPACK)