Skip to content

Commit f175b0a

Browse files
Merge pull request #21 from DhairyaLGandhi/dg/replace
Add `replace(::Array)`
2 parents 8a4eec1 + 5345a6e commit f175b0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/array.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ canonicalize(::Caches, p::Array) = nothing, nothing, nothing
1717
canonicalize(::Discrete, p::Array) = nothing, nothing, nothing
1818

1919
isscimlstructure(::Array) = true
20+
21+
function SciMLStructures.replace(::SciMLStructures.Tunable, arr::AbstractArray, new_arr::AbstractArray)
22+
reshape(new_arr, size(arr))
23+
end

0 commit comments

Comments
 (0)