Skip to content

Commit 3a5f035

Browse files
Merge pull request #26 from DhairyaLGandhi/dg/real
chore: mark only dense arrays as SciMLStructure
2 parents fbeb106 + 1c01efd commit 3a5f035

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/array.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ canonicalize(::Constants, p::AbstractArray) = nothing, nothing, nothing
2020
canonicalize(::Caches, p::AbstractArray) = nothing, nothing, nothing
2121
canonicalize(::Discrete, p::AbstractArray) = nothing, nothing, nothing
2222

23-
isscimlstructure(::AbstractArray) = true
23+
isscimlstructure(::AbstractArray) = false
24+
isscimlstructure(::AbstractArray{<:Number}) = true
2425

2526
function SciMLStructures.replace(
2627
::SciMLStructures.Tunable, arr::AbstractArray, new_arr::AbstractArray)

0 commit comments

Comments
 (0)