diff --git a/src/arrays.jl b/src/arrays.jl index 3c8b7b84e..15ee6dd17 100644 --- a/src/arrays.jl +++ b/src/arrays.jl @@ -92,6 +92,14 @@ function arguments(a::ArrayOp) arguments(a.term) end +function similarterm(a::ArrayOp, f, args, type; metadata=nothing) + res = f(args...) + if res isa Symbolic && metadata !== nothing + res = SymbolicUtils.metadata(res, metadata) + end + res +end + function Base.isequal(a::ArrayOp, b::ArrayOp) a === b && return true isequal(a.shape, b.shape) &&