Mercurial > octave
comparison src/ov-cell.cc @ 4587:7b957b442818
[project @ 2003-11-10 15:50:39 by jwe]
author | jwe |
---|---|
date | Mon, 10 Nov 2003 15:50:40 +0000 |
parents | db5a24d54915 |
children | cba347c642e2 |
comparison
equal
deleted
inserted
replaced
4586:7e08de0d1a98 | 4587:7b957b442818 |
---|---|
332 } | 332 } |
333 | 333 |
334 void | 334 void |
335 octave_cell::print_raw (std::ostream& os, bool) const | 335 octave_cell::print_raw (std::ostream& os, bool) const |
336 { | 336 { |
337 int ndims = matrix.ndims (); | 337 int nd = matrix.ndims (); |
338 | 338 |
339 if (ndims == 2) | 339 if (nd == 2) |
340 { | 340 { |
341 int nr = rows (); | 341 int nr = rows (); |
342 int nc = columns (); | 342 int nc = columns (); |
343 | 343 |
344 if (nr > 0 && nc > 0) | 344 if (nr > 0 && nc > 0) |
381 } | 381 } |
382 } | 382 } |
383 else | 383 else |
384 { | 384 { |
385 indent (os); | 385 indent (os); |
386 os << "{"; | |
387 dim_vector dv = matrix.dims (); | 386 dim_vector dv = matrix.dims (); |
388 for (int i = 0; i < ndims; i++) | 387 os << "{" << dv.str () << " Cell Array}"; |
389 { | |
390 if (i > 0) | |
391 os << "x"; | |
392 os << dv(i); | |
393 } | |
394 os << " Cell Array}"; | |
395 newline (os); | 388 newline (os); |
396 } | 389 } |
397 } | 390 } |
398 | 391 |
399 bool | 392 bool |