diff --git a/ext/EnzymeStaticArraysExt.jl b/ext/EnzymeStaticArraysExt.jl index bcaa3ec6cb..b751c336a2 100644 --- a/ext/EnzymeStaticArraysExt.jl +++ b/ext/EnzymeStaticArraysExt.jl @@ -23,4 +23,11 @@ end end end +@inline function Enzyme.EnzymeCore.make_zero(x::FT)::FT where {FT<:SArray} + return Base.zero(x) +end +@inline function Enzyme.EnzymeCore.make_zero(x::FT)::FT where {FT<:MArray} + return Base.zero(x) +end + end