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: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #57909] incorrect result for sparse matrix exponentiation
Date: Sat, 27 Jan 2024 20:03:21 -0500 (EST)

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

But that looks like a variable display issue (a different bug?)


octave:17> a= zeros(2)
a =

   0   0
   0   0

octave:18> as = sparse (a)
as =

Compressed Column Sparse (rows = 2, cols = 2, nnz = 0 [0%])


octave:19> aa = full(as)
aa =

   0   0
   0   0

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

octave:21> as(1)+1
ans = 1
octave:22> 1+ as(1)
ans = 1
octave:23> whos as
Variables visible from the current scope:

variables in scope: top scope

  Attr   Name        Size                     Bytes  Class
  ====   ====        ====                     =====  ===== 
   s     as          2x2                         40  double



Dmitri.
-- 



    _______________________________________________________

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]