Mercurial > hg > octave-lyh
diff liboctave/boolNDArray.cc @ 10352:a3635bc1ea19
remove Array2
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 23 Feb 2010 16:12:27 +0100 |
parents | 07ebe522dac2 |
children | b47ab50a6aa8 |
line wrap: on
line diff
--- a/liboctave/boolNDArray.cc +++ b/liboctave/boolNDArray.cc @@ -111,28 +111,7 @@ boolMatrix boolNDArray::matrix_value (void) const { - boolMatrix retval; - - int nd = ndims (); - - switch (nd) - { - case 1: - retval = boolMatrix (Array2<bool> (*this, dimensions(0), 1)); - break; - - case 2: - retval = boolMatrix (Array2<bool> (*this, dimensions(0), - dimensions(1))); - break; - - default: - (*current_liboctave_error_handler) - ("invalid conversion of boolNDArray to boolMatrix"); - break; - } - - return retval; + return *this; } void