From 3866127c5e923c8bfbf38c460947808b5bc70d40 Mon Sep 17 00:00:00 2001 From: Matthieu Barreau Date: Wed, 23 Aug 2023 08:22:07 +0200 Subject: [PATCH] Change AbstractVector to AbstractArray{T,1} --- src/derivative.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/derivative.jl b/src/derivative.jl index ef46a1e..00cbcc0 100644 --- a/src/derivative.jl +++ b/src/derivative.jl @@ -19,7 +19,7 @@ function derivative end end @inline function derivative(f, x::V, l::V, - order::Int64) where {V <: AbstractVector{<:Number}} + order::Int64) where {V <: AbstractArray{<:Number, 1}} derivative(f, x, l, Val{order + 1}()) end @@ -32,7 +32,7 @@ end make_taylor(t0::T, t1::T, ::Val{N}) where {T, N} = TaylorScalar{T, N}(t0, t1) @inline function derivative(f, x::V, l::V, - vN::Val{N}) where {V <: AbstractVector{<:Number}, N} + vN::Val{N}) where {V <: AbstractArray{<:Number, 1}, N} t = map((t0, t1) -> make_taylor(t0, t1, vN), x, l) # i.e. map(TaylorScalar{T, N}, x, l) return extract_derivative(f(t), N) end