Mercurial > octave
diff libinterp/corefcn/pr-output.cc @ 19317:25f535b90e52
Change boolMatrix to subclass boolNDArray rather than be another Array<bool>.
* boolMatrix.h: both boolMatrix and boolNDArray are Array<bool>, the first
being simply 2 dimensional. We change this so that boolMatrix inherits from
boolNDArray instead.
* boolNDArray.cc, boolNDArray.h (boolNDArray::matrix_value): remove method
since boolMatrix can be constructed from its parent.
(boolNDArray::boolNDArray): remove constructor from boolMatrix
* pr-output.cc, octave-value/ov-bool-mat.cc, octave-value/ov-bool-mat.h:
replace calls to boolNDArray::matrix_value () with the boolMatrix constructor.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Mon, 20 Oct 2014 01:34:52 +0100 |
parents | 6d8d5d9f2264 |
children | 6c9ea5be96bf |
line wrap: on
line diff
--- a/libinterp/corefcn/pr-output.cc Mon Nov 10 16:43:39 2014 +0100 +++ b/libinterp/corefcn/pr-output.cc Mon Oct 20 01:34:52 2014 +0100 @@ -2775,7 +2775,7 @@ { case 1: case 2: - octave_print_internal (os, nda.matrix_value (), + octave_print_internal (os, boolMatrix (nda), pr_as_read_syntax, extra_indent); break;