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 19:43:38 -0500 (EST)

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

Not sure why this wasn't reviewed four years ago, but this is still a real
problem.  Minimum example below.


octave:1> a = 0
a = 0
octave:2> b = 2
b = 2
octave:3> a .^ b
ans = 0
octave:4> as = sparse (a)
as = Compressed Column Sparse (rows = 1, cols = 1, nnz = 0 [0%])

octave:5> bs = sparse (b)
bs = Compressed Column Sparse (rows = 1, cols = 1, nnz = 1 [100%])

  (1, 1) -> 2
octave:6> as .^ bs
ans = Compressed Column Sparse (rows = 1, cols = 1, nnz = 1 [100%])

  (1, 1) -> 1





    _______________________________________________________

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]