From 041e07d9a5b444e3d403799bd88a8799c529f7bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Torregrosa=20Cort=C3=A9s?= Date: Mon, 20 Oct 2025 11:46:13 +0200 Subject: [PATCH] Add naive recursivecopy! implementation Implement basic version of recursivecopy! function. --- src/utils.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils.jl b/src/utils.jl index 908f55ad..14115b0a 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -45,6 +45,10 @@ like `copy!` on arrays of scalars. """ function recursivecopy! end +function recursivecopy!(b, a) + copyto!(b, a) +end + function recursivecopy!(b::AbstractArray{T, N}, a::AbstractArray{T2, N}) where {T <: StaticArraysCore.StaticArray, T2 <: StaticArraysCore.StaticArray,