Mercurial > hg > octave-nkf
changeset 4986:fac558699d0f
[project @ 2004-09-10 15:57:13 by jwe]
author | jwe |
---|---|
date | Fri, 10 Sep 2004 15:57:13 +0000 |
parents | 39df5a9c7b8e |
children | bad4898b468e |
files | src/ChangeLog src/data.cc |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-09-10 John W. Eaton <jwe@octave.org> + + * data.cc (fill_matrix, identity_matrix): + Also allow logical data type. + 2004-09-10 David Bateman <dbateman@free.fr> * ov-intx.h (OCTAVE_VALUE_INT_MATRIX_T::double_value,
--- a/src/data.cc +++ b/src/data.cc @@ -1304,6 +1304,10 @@ retval = NDArray (dims, val); break; + case oct_data_conv::dt_logical: + retval = boolNDArray (dims, val); + break; + default: error ("%s: invalid class name", fcn); break; @@ -1443,6 +1447,10 @@ retval = identity_matrix<NDArray> (nr, nc); break; + case oct_data_conv::dt_logical: + retval = identity_matrix<boolNDArray> (nr, nc); + break; + default: error ("eye: invalid class name"); break;