[bug #68254] Error computing the 2-norm of a zero sparse matrix.

Rik <[email protected]> Mon, 20 Apr 2026 15:56:41 -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.

Follow-up Comment #7, bug #68254 (group octave):

Ok, this was my fault.  Adding just a bug number to a BIST test marks it as a
known failure.  I needed to add an asterisk to mark it as a resolved bug so
that a failure would then be counted as a regression.

I did that and now everything is working as expected.


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 <68254> (norm (sparse (100, 100), 2), 0)
-%!assert <68254> (norm (complex (sparse (100, 100), sparse (100, 100)), 2),
0)
+%!assert <*68254> (norm (sparse (100, 100), 2), 0)
+%!assert <*68254> (norm (complex (sparse (100, 100), sparse (100, 100)), 2),
0)
 */




    _______________________________________________________

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-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaeaE+QAKCRCqLAuaBUf3
TtzaAP4hoYtObfAX3oumkuY9RJJmQnN1CRpiqxe/MIwwKgxImwD7B+Zxq9wAUFKk
uhru+kve4FtCw9slNBUXZNM62HxHwA4=
=Decb
-----END PGP SIGNATURE-----