|
From: | John W. Eaton |
Subject: | [Octave-bug-tracker] [bug #56232] Octave crash when inverting an empty sparse matrix. |
Date: | Wed, 8 May 2019 07:50:08 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
Follow-up Comment #32, bug #56232 (project octave): I'm not worried about the allocations and it seems like always having valid arrays will make the implementation simpler for the mex interface and for calling suitesparse functions. Making the minimum value for nzmax 1 also seems fine, and if that's what Matlab does, there may be code that relies on it so we might as well do the same. For the problem with inverse, I guess we just need to fix SparseMatrix::tinverse to generate +/-Inf and NaN values instead of reporting division by zero. I looked at it and am hopeful that someone else understands that code and the sparse data structure better than I do. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?56232> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |