Mercurial > octave
comparison libinterp/octave-value/ov-float.cc @ 28631:70cdf8de553d
move non-member octave_value operator functions to octave namespace
* ov.h, ov.cc (unary_op, binary_op, cat_op, colon_op): New functions
in octave namespace that replace do_unary_op, do_binary_op, do_cat_op,
and do_colon_op, respectively.
(do_unary_op, do_binary_op, do_cat_op, do_colon_op):
Deprecate global functions. Forward to corresponding new functions in
octave namespace.
* bsxfun.cc, cellfun.cc, data.cc, dot.cc, fft.cc, oct-stream.cc,
stack-frame.h, tril.cc, ov-base-diag.cc, ov-bool.cc, ov-class.cc,
ov-complex.cc, ov-float.cc, ov-flt-complex.cc, ov-intx.h,
ov-lazy-idx.h, ov-magic-int.cc, ov-perm.cc, ov-range.cc, ov-scalar.cc,
oct-lvalue.cc, oct-lvalue.h, pt-binop.cc, pt-cbinop.cc, pt-colon.cc,
pt-eval.cc, pt-tm-const.cc, pt-unop.cc: Change all uses.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 30 Jul 2020 16:16:04 -0400 |
parents | 83172e1c77f2 |
children | 7854d5752dd2 |
comparison
equal
deleted
inserted
replaced
28630:35f974bab4c8 | 28631:70cdf8de553d |
---|---|
77 // 1x1 matrix back to a scalar value. Need a better solution | 77 // 1x1 matrix back to a scalar value. Need a better solution |
78 // to this problem. | 78 // to this problem. |
79 | 79 |
80 octave_value tmp (new octave_float_matrix (float_matrix_value ())); | 80 octave_value tmp (new octave_float_matrix (float_matrix_value ())); |
81 | 81 |
82 return tmp.do_index_op (idx, resize_ok); | 82 return tmp.index_op (idx, resize_ok); |
83 } | 83 } |
84 | 84 |
85 octave_value | 85 octave_value |
86 octave_float_scalar::resize (const dim_vector& dv, bool fill) const | 86 octave_float_scalar::resize (const dim_vector& dv, bool fill) const |
87 { | 87 { |