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

"Dmitri A. Sergatskov" <[email protected]> Fri, 17 Apr 2026 17:53:57 -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 #1, bug #68254 (group octave):

Thanks for the bug report.
Attached
(file bug68254_zerosparse_100.cset)
fixes that for me.


octave:21> norm(sparse(100,100),2)
ans = 0


Dmitri.
-- 


(file #58481)

    _______________________________________________________

Additional Item Attachment:

Name: bug68254_zerosparse_100.cset   Size: 1.9KiB

<https://file.savannah.gnu.org/file/bug68254_zerosparse_100.cset?file_id=58481>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-f290f6b25beb8cb99bbe243a6cd2c5fef79ffcde.tar.gz


    _______________________________________________________

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

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaeKr9QAKCRCqLAuaBUf3
TrMhAP0QA5VOp0dt8ZbqQDzv97OxqIiv4ydClBKLIFJIgeg67QEAoNsXXm4RGccr
Q3VCmq8Fm8aZAl3CWlSs1FxjPEEq4Aw=
=nb7/
-----END PGP SIGNATURE-----