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.
2 parents 257ad7a + 76607b1 commit 5af9e41Copy full SHA for 5af9e41
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