[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63277] isfinite returns full array in Matlab
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #63277] isfinite returns full array in Matlab for sparse input |
Date: |
Wed, 26 Oct 2022 23:16:29 -0400 (EDT) |
Follow-up Comment #2, bug #63277 (project octave):
the fix was related to this problem identified through the help mailing list:
https://lists.gnu.org/archive/html/help-octave/2022-10/msg00011.html
I'm guessing your input to `glpk` is sparse. Line 507 of `glpk.m` uses:
if (any (! isfinite (A(:))))
error ("glpk: The values in A must be finite");
endif
`isfinite (A(:))` creates a sparse Boolean matrix. However, it is likely not
sparsely populated which might be the cause for the memory issue.
Does it work if you edit that file and change the above lines to the
following?
if (any (isinf (A(:))) || any (isnan(A(:))))
error ("glpk: The values in A must be finite");
endif
that turned out to solve the problem for that user, and so was pushed as a
potential fix to prevent reoccurrence.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63277>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/