Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
17865:dde06c2ac6c6 | 17866:ea0ecbe2eaf5 |
---|---|
155 | 155 |
156 void print (std::ostream& os, bool pr_as_read_syntax = false) const; | 156 void print (std::ostream& os, bool pr_as_read_syntax = false) const; |
157 | 157 |
158 void print_info (std::ostream& os, const std::string& prefix) const; | 158 void print_info (std::ostream& os, const std::string& prefix) const; |
159 | 159 |
160 std::string short_disp (void) const; | |
161 | |
160 MT& matrix_ref (void) | 162 MT& matrix_ref (void) |
161 { | 163 { |
162 clear_cached_info (); | 164 clear_cached_info (); |
163 return matrix; | 165 return matrix; |
164 } | 166 } |