Mercurial > hg > octave-nkf
diff liboctave/array/boolMatrix.cc @ 19509:8b4a24081e47
Remove redundant methods now that Matrices inherit from NDArrays.
* boolMatrix.cc, boolMatrix.h, chMatrix.cc, chMatrix.h: boolMatrix and
charMatrix are now subclasses of boolNDArray and charNDArray. They now
inherit the methods any, all, diag, and the operator = from their parent
classes.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Mon, 03 Nov 2014 22:18:29 +0000 |
parents | 65554f5847ac |
children | 4197fc428c7d |
line wrap: on
line diff
--- a/liboctave/array/boolMatrix.cc +++ b/liboctave/array/boolMatrix.cc @@ -84,20 +84,6 @@ return Array<bool>::diag (k); } -// FIXME: Do these really belong here? Maybe they should be in a base class? - -boolMatrix -boolMatrix::all (int dim) const -{ - return do_mx_red_op<bool, bool> (*this, dim, mx_inline_all); -} - -boolMatrix -boolMatrix::any (int dim) const -{ - return do_mx_red_op<bool, bool> (*this, dim, mx_inline_any); -} - MM_BOOL_OPS (boolMatrix, boolMatrix) MS_BOOL_OPS (boolMatrix, bool) SM_BOOL_OPS (bool, boolMatrix)