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

[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
branch).


          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:

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

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




reply via email to

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