Mercurial > repos > public > sbplib_julia
changeset 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 | 3ada7e9be4d6 |
children | d91a9f47380f |
files | src/Diffinitive.jl |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
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