comparison src/ov-complex.h @ 5731:c7d5a534afa5

[project @ 2006-04-03 19:33:26 by jwe]
author jwe
date Mon, 03 Apr 2006 19:33:27 +0000
parents 4c8a2e4e0717
children ce79d238f142
comparison
equal deleted inserted replaced
5730:109fdf7b3dcb 5731:c7d5a534afa5
99 99
100 Matrix matrix_value (bool = false) const; 100 Matrix matrix_value (bool = false) const;
101 101
102 NDArray array_value (bool = false) const; 102 NDArray array_value (bool = false) const;
103 103
104 octave_value resize (const dim_vector& dv) const 104 octave_value resize (const dim_vector& dv, bool fill = false) const;
105 {
106 ComplexNDArray retval (dv);
107
108 if (dv.numel ())
109 retval(0) = scalar;
110
111 return retval;
112 }
113 105
114 Complex complex_value (bool = false) const; 106 Complex complex_value (bool = false) const;
115 107
116 ComplexMatrix complex_matrix_value (bool = false) const; 108 ComplexMatrix complex_matrix_value (bool = false) const;
117 109