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

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

[Octave-bug-tracker] [bug #50756] display of objects in cell arrays and


From: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #50756] display of objects in cell arrays and structs is suppressed
Date: Sun, 8 Apr 2018 03:18:29 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Follow-up Comment #9, bug #50756 (project octave):

So the newline appears b/c print_as_scalar() is always false for classes.  If
we are going to keep the "<class sym>" style of output for 4.4, maybe we
should set this to true?

I tried a patch to make that always true and then call the class's display
method, assuming it will DTRT.  Results look reasonable but unfort I get
segfaults when I invoke "ans".


>>> {-42, 'hi', sym('x')/2, 43, {1 2 sym('x') 4 {11 12 sym('z')/113 14}}}
ans =
{
  [1,1] = -42
  [1,2] = hi
  [1,3] = (sym)
  x
  ─
  2
  [1,4] =  43
  [1,5] =
  {
    [1,1] =  1
    [1,2] =  2
    [1,3] = (sym) x
    [1,4] =  4
    [1,5] =
    {
      [1,1] =  11
      [1,2] =  12
      [1,3] = (sym)
   z 
  ───
  113
      [1,4] =  14
    }
  }
}


interval pkg:

>>> {42 {{{43 infsup(1, 2) infsup(5, [6 6.1; 6.2 6.3]) 44}}} 45}
ans =
{
  [1,1] =  42
  [1,2] =
  {
    [1,1] =
    {
      [1,1] =
      {
        [1,1] =  43
        [1,2] = ans = [1, 2]
        [1,3] = ans ⊂ 2×2 interval matrix
        [5, 6]   [5, 6.1]
   [5, 6.2001]   [5, 6.3]
        [1,4] =  44
      }
    }
  }
  [1,3] =  45
}


Note @infsup/display seems to add a few extraneous "ans".


(file #43837)
    _______________________________________________________

Additional Item Attachment:

File name: cbm_50756_draft.patch          Size:1 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50756>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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