Mercurial > hg > octave-terminal
changeset 7105:a53649dc07b6
[project @ 2007-11-06 17:55:17 by jwe]
author | jwe |
---|---|
date | Tue, 06 Nov 2007 17:55:18 +0000 |
parents | b26d0cd10a42 |
children | 33ed85dcfaa8 |
files | src/ChangeLog src/OPERATORS/op-bm-bm.cc |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2007-11-06 David Bateman <dbateman@free.fr> + + * OPERATORS/op-bm-bm.cc (matrix_to_bool_matrix, + scalar_to_bool_matrix): New type conversion functions. + (install_bm_bm_ops): Install new type conversions functions. + 2007-11-06 Michael Goffioul <michael.goffioul@gmail.com> * toplev.cc (Fsystem) [__WIN32__ && ! __CYGWIN__]:
--- a/src/OPERATORS/op-bm-bm.cc +++ b/src/OPERATORS/op-bm-bm.cc @@ -29,6 +29,7 @@ #include "oct-obj.h" #include "ov.h" #include "ov-bool-mat.h" +#include "ov-scalar.h" #include "ov-range.h" #include "ov-re-mat.h" #include "ov-re-sparse.h" @@ -100,6 +101,9 @@ return octave_value (); } +DEFCONVFN (matrix_to_bool_matrix, matrix, bool) +DEFCONVFN (scalar_to_bool_matrix, scalar, bool) + void install_bm_bm_ops (void) { @@ -119,6 +123,9 @@ INSTALL_CATOP (octave_bool_matrix, octave_matrix, bm_m); INSTALL_CATOP (octave_matrix, octave_bool_matrix, m_bm); + INSTALL_CONVOP (octave_matrix, octave_bool_matrix, matrix_to_bool_matrix); + INSTALL_CONVOP (octave_scalar, octave_bool_matrix, scalar_to_bool_matrix); + INSTALL_ASSIGNOP (op_asn_eq, octave_bool_matrix, octave_bool_matrix, assign); INSTALL_ASSIGNOP (op_asn_eq, octave_bool_matrix, octave_matrix, conv_and_assign);