Mercurial > octave-nkf
diff src/OPERATORS/op-cm-cs.cc @ 4550:69a9b22a72a2
[project @ 2003-10-27 15:41:55 by jwe]
author | jwe |
---|---|
date | Mon, 27 Oct 2003 15:41:55 +0000 |
parents | 79df15d4470c |
children | c7ae43dfdea4 |
line wrap: on
line diff
--- a/src/OPERATORS/op-cm-cs.cc Mon Oct 27 03:31:29 2003 +0000 +++ b/src/OPERATORS/op-cm-cs.cc Mon Oct 27 15:41:55 2003 +0000 @@ -40,9 +40,9 @@ // complex matrix by complex scalar ops. -DEFNDBINOP_OP (add, complex_matrix, complex, array, complex, +) -DEFNDBINOP_OP (sub, complex_matrix, complex, array, complex, -) -DEFNDBINOP_OP (mul, complex_matrix, complex, array, complex, *) +DEFNDBINOP_OP (add, complex_matrix, complex, complex_array, complex, +) +DEFNDBINOP_OP (sub, complex_matrix, complex, complex_array, complex, -) +DEFNDBINOP_OP (mul, complex_matrix, complex, complex_array, complex, *) DEFBINOP (div, complex_matrix, complex) { @@ -53,7 +53,7 @@ if (d == 0.0) gripe_divide_by_zero (); - return octave_value (v1.array_value () / d); + return octave_value (v1.complex_array_value () / d); } DEFBINOP_FN (pow, complex_matrix, complex, xpow) @@ -68,14 +68,14 @@ return octave_value (xleftdiv (m1, m2)); } -DEFNDBINOP_FN (lt, complex_matrix, complex, array, complex, mx_el_lt) -DEFNDBINOP_FN (le, complex_matrix, complex, array, complex, mx_el_le) -DEFNDBINOP_FN (eq, complex_matrix, complex, array, complex, mx_el_eq) -DEFNDBINOP_FN (ge, complex_matrix, complex, array, complex, mx_el_ge) -DEFNDBINOP_FN (gt, complex_matrix, complex, array, complex, mx_el_gt) -DEFNDBINOP_FN (ne, complex_matrix, complex, array, complex, mx_el_ne) +DEFNDBINOP_FN (lt, complex_matrix, complex, complex_array, complex, mx_el_lt) +DEFNDBINOP_FN (le, complex_matrix, complex, complex_array, complex, mx_el_le) +DEFNDBINOP_FN (eq, complex_matrix, complex, complex_array, complex, mx_el_eq) +DEFNDBINOP_FN (ge, complex_matrix, complex, complex_array, complex, mx_el_ge) +DEFNDBINOP_FN (gt, complex_matrix, complex, complex_array, complex, mx_el_gt) +DEFNDBINOP_FN (ne, complex_matrix, complex, complex_array, complex, mx_el_ne) -DEFNDBINOP_OP (el_mul, complex_matrix, complex, array, complex, *) +DEFNDBINOP_OP (el_mul, complex_matrix, complex, complex_array, complex, *) DEFBINOP (el_div, complex_matrix, complex) { @@ -86,20 +86,20 @@ if (d == 0.0) gripe_divide_by_zero (); - return octave_value (v1.array_value () / d); + return octave_value (v1.complex_array_value () / d); } -DEFNDBINOP_FN (el_pow, complex_matrix, complex, array, complex, elem_xpow) +DEFNDBINOP_FN (el_pow, complex_matrix, complex, complex_array, complex, elem_xpow) DEFBINOP (el_ldiv, complex_matrix, complex) { CAST_BINOP_ARGS (const octave_complex_matrix&, const octave_complex&); - return x_el_div (v2.complex_value (), v1.array_value ()); + return x_el_div (v2.complex_value (), v1.complex_array_value ()); } -DEFNDBINOP_FN (el_and, complex_matrix, complex, array, complex, mx_el_and) -DEFNDBINOP_FN (el_or, complex_matrix, complex, array, complex, mx_el_or) +DEFNDBINOP_FN (el_and, complex_matrix, complex, complex_array, complex, mx_el_and) +DEFNDBINOP_FN (el_or, complex_matrix, complex, complex_array, complex, mx_el_or) DEFASSIGNOP_FN (assign, complex_matrix, complex, assign)