Skip to content

Commit 2360a56

Browse files
Restructure in replace AbstractArray fallback
Required in order to be type matching
1 parent d29ded5 commit 2360a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ isscimlstructure(::AbstractArray{<:Number}) = true
2525

2626
function SciMLStructures.replace(
2727
::SciMLStructures.Tunable, arr::AbstractArray, new_arr::AbstractArray)
28-
reshape(new_arr, size(arr))
28+
restructure(arr, new_arr)
2929
end

0 commit comments

Comments
 (0)