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

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

[Octave-bug-tracker] [bug #56690] gui: variable editor should support di


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #56690] gui: variable editor should support display of lazy_index
Date: Fri, 9 Sep 2022 02:10:42 -0400 (EDT)

Follow-up Comment #3, bug #56690 (project octave):

I'm coming here from bug #63025.

It seems reasonable to me to allow display of lazy index values.  Editing them
already works but may convert them to matrix objects.   Something similar
already happens with diagonal and permutation matrices.  For example:


[u, s, v] = svd (rand (4))
typeinfo (s)  ## returns "diagonal matrix"
openvar s
## edit an element on the diagonal
typeinfo (s)  ## still returns "diagonal matrix"
## edit an element NOT on the diagonal
typeinfo (s)  ## now returns "matrix"


If I remember correctly, this works because the variable editor is just
executing indexing commands that would have the same effect if they were
executed at the command line.

Also note that if you do


a = [1,2,3,4];
y = find (a > 2);
openvar y


and then change one of the elements that is displayed as "#VAL" in the
variable editor so that the type of the object changes from "lazy_index" to
"matrix", the array values will appear in the editor because elements of
"matrix" objects can be displayed in the variable editor.

Can someone update the provided patch so that it applies to the current
sources?  If not, I can try to take a look at doing that.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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