|
| From: | Rik |
| Subject: | [Octave-bug-tracker] [bug #52542] Weird behaviour of vertical concatenation with empty char array |
| Date: | Tue, 28 Nov 2017 01:19:31 -0500 (EST) |
| User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #6, bug #52542 (project octave):
convert_to_str is implemented by each octave_value type by the function
convert_to_str_internal. For a real matrix like ones() the code should be in
libinterp/octave-value/ov-re-mat.cc. The function convert_to_str internal in
that file begins with
octave_value retval;
dim_vector dv = dims ();
octave_idx_type nel = dv.numel ();
charNDArray chm (dv);
bool warned = false;
for (octave_idx_type i = 0; i < nel; i++)
This looks alright, unless the constructor for charNDArray is somehow not
doing the right thing.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52542>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |