File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 264264Base. isapprox (p:: _APL , α; kwargs... ) = isapprox (promote (p, α)... ; kwargs... )
265265Base. isapprox (α, p:: _APL ; kwargs... ) = isapprox (promote (p, α)... ; kwargs... )
266266
267+ MA. operate! (:: typeof (- ), :: AbstractTermLike ) = error (" not implemented yet" )
268+
269+ MA. operate_to! (:: AbstractTermLike , :: typeof (- ), :: _APL ) = error (" not implemented yet" )
270+
271+ function MA. operate! (:: typeof (- ), p:: _APL )
272+ negate!! = x -> MA. operate!! (- , x)
273+ return map_coefficients! (negate!!, p, nonzero = true )
274+ end
275+
276+ function MA. operate_to! (o:: P , :: typeof (- ), p:: P ) where {P<: _APL }
277+ return map_coefficients_to! (o, - , p, nonzero = true )
278+ end
279+
267280# `MA.operate(-, p)` redirects to `-p` as it assumes that `-p` can be modified
268281# through the MA API without modifying `p`. We should either copy the monomial
269282# here or implement a `MA.operate(-, p)` that copies it. We choose the first
You can’t perform that action at this time.
0 commit comments