Mercurial > octave-nkf
comparison src/OPERATORS/op-bm-bm.cc @ 5943:c038c2947ee1
[project @ 2006-08-18 21:27:03 by jwe]
author | jwe |
---|---|
date | Fri, 18 Aug 2006 21:27:04 +0000 |
parents | da843f35775c |
children | 93c65f2a5668 |
comparison
equal
deleted
inserted
replaced
5942:a02a305e06ee | 5943:c038c2947ee1 |
---|---|
90 octave_bool_matrix& v1 = dynamic_cast<octave_bool_matrix&> (a1); | 90 octave_bool_matrix& v1 = dynamic_cast<octave_bool_matrix&> (a1); |
91 | 91 |
92 // FIXME -- perhaps add a warning for this conversion if the values | 92 // FIXME -- perhaps add a warning for this conversion if the values |
93 // are not all 0 or 1? | 93 // are not all 0 or 1? |
94 | 94 |
95 boolNDArray v2 = a2.bool_array_value (); | 95 boolNDArray v2 = a2.bool_array_value (true); |
96 | 96 |
97 if (! error_state) | 97 if (! error_state) |
98 v1.assign (idx, v2); | 98 v1.assign (idx, v2); |
99 | 99 |
100 return octave_value (); | 100 return octave_value (); |