comparison src/ov-scalar.h @ 5885:bd3041e30d97

[project @ 2006-07-14 20:29:35 by jwe]
author jwe
date Fri, 14 Jul 2006 20:29:35 +0000
parents ce79d238f142
children b9c45e0cf685
comparison
equal deleted inserted replaced
5884:9a5a0d5ef82a 5885:bd3041e30d97
69 // We return an octave_matrix here instead of an octave_scalar so 69 // We return an octave_matrix here instead of an octave_scalar so
70 // that in expressions like A(2,2,2) = 2 (for A previously 70 // that in expressions like A(2,2,2) = 2 (for A previously
71 // undefined), A will be empty instead of a 1x1 object. 71 // undefined), A will be empty instead of a 1x1 object.
72 octave_base_value *empty_clone (void) const { return new octave_matrix (); } 72 octave_base_value *empty_clone (void) const { return new octave_matrix (); }
73 73
74 octave_value do_index_op (const octave_value_list& idx, int resize_ok); 74 octave_value do_index_op (const octave_value_list& idx,
75 bool resize_ok = false);
75 76
76 idx_vector index_vector (void) const { return idx_vector (scalar); } 77 idx_vector index_vector (void) const { return idx_vector (scalar); }
77 78
78 octave_value any (int = 0) const 79 octave_value any (int = 0) const
79 { return (scalar != 0 && ! lo_ieee_isnan (scalar)); } 80 { return (scalar != 0 && ! lo_ieee_isnan (scalar)); }