diff libinterp/octave-value/ov-base-mat.h @ 17866:ea0ecbe2eaf5

display matrix values in GUI workspace viewer (bug #40499) * pr-output.h, pr-output.cc (octave_print_internal): Provide dummy versions for char and octave_value objects. (octave_print_internal (ostream&, double, bool), octave_print_internal (ostream&, const Complex&, bool)): Handle print_as_read_syntax. * ov-base-mat.h, ov-base-mat.cc (octave_base_mat<MT>::short_disp): New function. * ov-cell.h, ov-cell.cc (octave_cell::short_disp): New function.
author John W. Eaton <jwe@octave.org>
date Wed, 06 Nov 2013 19:17:59 -0500
parents ebb3ef964372
children 1d2e709bbbda
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base-mat.h
+++ b/libinterp/octave-value/ov-base-mat.h
@@ -157,6 +157,8 @@
 
   void print_info (std::ostream& os, const std::string& prefix) const;
 
+  std::string short_disp (void) const;
+
   MT& matrix_ref (void)
   {
     clear_cached_info ();