We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 257ad7a commit 76607b1Copy full SHA for 76607b1
src/operators.jl
@@ -37,6 +37,8 @@ end
37
# Fix ambiguity between above methods and methods in MA
38
Base.:+(::MA.Zero, p::APL) = MA.copy_if_mutable(p)
39
Base.:+(p::APL, ::MA.Zero) = MA.copy_if_mutable(p)
40
+Base.:-(::MA.Zero, p::APL) = MA.operate(-, p)
41
+Base.:-(p::APL, ::MA.Zero) = MA.copy_if_mutable(p)
42
43
# Special case AbstractArrays of APLs
44
# We add these instead of relying on the broadcasting API since the above method definitions are very wide.
0 commit comments