octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57909] incorrect result for sparse matrix exp


From: Rik
Subject: [Octave-bug-tracker] [bug #57909] incorrect result for sparse matrix exponentiation
Date: Sat, 27 Jan 2024 20:25:30 -0500 (EST)

Follow-up Comment #9, bug#57909 (group octave):

This is correct


c = as .^ 1
c = Compressed Column Sparse (rows = 1, cols = 1, nnz = 0 [0%])


Check for full matrices


octave:3> 0 .^ 1
ans = 0


And sparse display only reports non-zero entries.  For example,


octave:4> sparse ([0])
ans = Compressed Column Sparse (rows = 1, cols = 1, nnz = 0 [0%])



Size is 1x1, and number of non-zero entries is zero.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57909>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]