[bug #68254] Error computing the 2-norm of a zero sparse matrix.
Rik <[email protected]> Mon, 20 Apr 2026 12:13:52 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Update of bug #68254 (group octave):
Status: None => Fixed
Open/Closed: Open => Closed
Fixed Release: None => 11.2.0 (current stable)
_______________________________________________________
Follow-up Comment #3:
Good catch, and thank you Dmitri for the very quick patch.
The only thing I changed was to tag the BIST tests with this bug number.
diff --git a/libinterp/corefcn/data.cc b/libinterp/corefcn/data.cc
--- a/libinterp/corefcn/data.cc
+++ b/libinterp/corefcn/data.cc
@@ -8390,8 +8390,8 @@ compute the norms of each column and ret
%! result = norm (x, -Inf);
%! assert (result, single (0.5));
-%!assert (norm (sparse (100, 100), 2), 0)
-%!assert (norm (complex(sparse (100, 100), sparse(0,0)), 2), 0)
+%!assert <68254> (norm (sparse (100, 100), 2), 0)
+%!assert <68254> (norm (complex(sparse (100, 100), sparse(0,0)), 2), 0)
*/
I checked it in at https://hg.savannah.gnu.org/hgweb/octave/rev/09be10c13f55.
This fix will be part of the 11.2 release. Closing report.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68254>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaeZQwAAKCRCqLAuaBUf3 Tt7AAP9/qPORemhjYAEdfHchYtb+1jpxVT7NfacJgAi5FeF9wQEAwoXNzbZM3pld kxXZdSf7rUQRM6gPNj6e2PibuW5VgAE= =j5rC -----END PGP SIGNATURE-----