comparison src/ov-bool.h @ 7919:9d080df0c843

new NDArray constructor for ArrayN<octave_idx_type>
author David Bateman <dbateman@free.fr>
date Mon, 30 Jun 2008 15:51:31 +0200
parents 82be108cc558
children cf59d542f33e
comparison
equal deleted inserted replaced
7918:78eef61f75d5 7919:9d080df0c843
132 132
133 FloatMatrix float_matrix_value (bool = false) const 133 FloatMatrix float_matrix_value (bool = false) const
134 { return FloatMatrix (1, 1, scalar); } 134 { return FloatMatrix (1, 1, scalar); }
135 135
136 NDArray array_value (bool = false) const 136 NDArray array_value (bool = false) const
137 { return NDArray (dim_vector (1, 1), scalar); } 137 { return NDArray (dim_vector (1, 1), static_cast<double> (scalar)); }
138 138
139 FloatNDArray float_array_value (bool = false) const 139 FloatNDArray float_array_value (bool = false) const
140 { return FloatNDArray (dim_vector (1, 1), scalar); } 140 { return FloatNDArray (dim_vector (1, 1), static_cast<double> (scalar)); }
141 141
142 Complex complex_value (bool = false) const { return scalar; } 142 Complex complex_value (bool = false) const { return scalar; }
143 143
144 FloatComplex float_complex_value (bool = false) const { return scalar; } 144 FloatComplex float_complex_value (bool = false) const { return scalar; }
145 145