Mercurial > octave
comparison libinterp/operators/op-sm-cs.cc @ 29990:b839c36fd106
move sparse xdiv and xpow operator functions inside octave namespace
* sparse-xdiv.h, sparse-xdiv.cc (elem_xdiv): Rename from x_el_div.
(elem_xdiv, xdiv): Move inside octave namespace. Change all uses.
Provide deprecated wrapper functions to preserve old names.
* sparse-xpow.h, sparse-xpow.cc (elem_xpow, xpow): Move inside octave
namespace. Change all uses. Provide deprecated wrapper functions to
preserve old names.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 16 Aug 2021 22:28:30 -0400 |
parents | b260322f6730 |
children | 796f54d4ddbf |
comparison
equal
deleted
inserted
replaced
29989:b260322f6730 | 29990:b839c36fd106 |
---|---|
106 DEFBINOP (el_ldiv, sparse_matrix, complex) | 106 DEFBINOP (el_ldiv, sparse_matrix, complex) |
107 { | 107 { |
108 const octave_sparse_matrix& v1 = dynamic_cast<const octave_sparse_matrix&> (a1); | 108 const octave_sparse_matrix& v1 = dynamic_cast<const octave_sparse_matrix&> (a1); |
109 const octave_complex& v2 = dynamic_cast<const octave_complex&> (a2); | 109 const octave_complex& v2 = dynamic_cast<const octave_complex&> (a2); |
110 | 110 |
111 return octave_value (x_el_div (v2.complex_value (), | 111 return octave_value (elem_xdiv (v2.complex_value (), |
112 v1.sparse_matrix_value ())); | 112 v1.sparse_matrix_value ())); |
113 } | 113 } |
114 | 114 |
115 DEFBINOP_FN (el_and, sparse_matrix, complex, mx_el_and) | 115 DEFBINOP_FN (el_and, sparse_matrix, complex, mx_el_and) |
116 DEFBINOP_FN (el_or, sparse_matrix, complex, mx_el_or) | 116 DEFBINOP_FN (el_or, sparse_matrix, complex, mx_el_or) |
117 | 117 |