@@ -39,11 +39,10 @@ VectorOfArray(vec::AbstractVector{T}, ::NTuple{N}) where {T, N} = VectorOfArray{
3939VectorOfArray (vec:: AbstractVector ) = VectorOfArray (vec, (size (vec[1 ])... , length (vec)))
4040VectorOfArray (vec:: AbstractVector{VT} ) where {T, N, VT<: AbstractArray{T, N} } = VectorOfArray {T, N+1, typeof(vec)} (vec)
4141
42- DiffEqArray (vec:: AbstractVector{T} , ts, :: NTuple{N} ) where {T, N} = DiffEqArray {eltype(T), N, typeof(vec), typeof(ts), Nothing, Nothing, Nothing, Nothing } (vec, ts, nothing , nothing , nothing , nothing )
42+ DiffEqArray (vec:: AbstractVector{T} , ts, :: NTuple{N} , syms, indepsym, observed, p ) where {T, N} = DiffEqArray {eltype(T), N, typeof(vec), typeof(ts), typeof(syms), typeof(indepsym), typeof(observed), typeof(p) } (vec, ts, syms, indepsym, observed, p )
4343# Assume that the first element is representative of all other elements
44- DiffEqArray (vec:: AbstractVector ,ts:: AbstractVector ) = DiffEqArray (vec, ts, (size (vec[1 ])... , length (vec)))
45- DiffEqArray (vec:: AbstractVector{VT} ,ts:: AbstractVector ) where {T, N, VT<: AbstractArray{T, N} } = DiffEqArray {T, N+1, typeof(vec), typeof(ts), Nothing, Nothing, Nothing, Nothing} (vec, ts, nothing , nothing , nothing , nothing )
46- function DiffEqArray (vec:: AbstractVector{VT} ,ts:: AbstractVector , syms, indepsym, observed:: Function , p) where {T, N, VT<: AbstractArray{T, N} }
44+ DiffEqArray (vec:: AbstractVector ,ts:: AbstractVector , syms= nothing , indepsym= nothing , observed= nothing , p= nothing ) = DiffEqArray (vec, ts, (size (vec[1 ])... , length (vec)), syms, indepsym, observed, p)
45+ function DiffEqArray (vec:: AbstractVector{VT} ,ts:: AbstractVector , syms= nothing , indepsym= nothing , observed= nothing , p= nothing ) where {T, N, VT<: AbstractArray{T, N} }
4746 DiffEqArray {T, N+1, typeof(vec), typeof(ts), typeof(syms), typeof(indepsym), typeof(observed), typeof(p)} (vec, ts, syms, indepsym, observed, p)
4847end
4948
0 commit comments