[Top][All Lists]

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

[Octave-bug-tracker] [bug #51410] display of multidimensional arrays use

From: Rik
Subject: [Octave-bug-tracker] [bug #51410] display of multidimensional arrays uses 'ans'
Date: Mon, 10 Jul 2017 00:45:30 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #2, bug #51410 (project octave):

The code is in libinterp/corefcn/pr-output.cc beginning at line 2032 (dev

          std::string nm = "ans";

          if (m > 1)
              nm += "(:,:,";

Unfortunately, the way Octave printing works is to show the initial name and
equals sign (for example, "myvar =\n\n"), but after that the rest of the
printing routines have no idea what the name of the variable being printed is.
 To fix this would require changing the function prototype for not just
print_nd_array, but octave_print_internal which has many variations.  I'm not
sure it is worth that effort.   


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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