Mercurial > repos > public > sbplib_julia
diff src/Diffinitive.jl @ 1816:77f1b027d134 feature/jet_aqua
Resolve ambiguities for addition and subtraction of LazyArrays
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 14 Oct 2024 23:26:49 +0200 |
parents | 2311f33b6bd3 |
children | bddcae938ded |
line wrap: on
line diff
--- a/src/Diffinitive.jl Thu Oct 10 15:16:29 2024 +0200 +++ b/src/Diffinitive.jl Mon Oct 14 23:26:49 2024 +0200 @@ -10,4 +10,14 @@ export Grids export SbpOperators + + +# Aqua.jl fixes +using StaticArrays +using .LazyTensors +Base.:+(a::StaticArray, b::LazyArray) = a +̃ b +Base.:+(a::LazyArray, b::StaticArray) = a +̃ b +Base.:-(a::StaticArray, b::LazyArray) = a -̃ b +Base.:-(a::LazyArray, b::StaticArray) = a -̃ b + end