@@ -44,14 +44,14 @@ function ForwardColorJacCache(f::F, x, _chunksize = nothing;
4444 p = adapt .(parameterless_type (x), generate_chunked_partials (x, colorvec, chunksize))
4545 _t = Dual{T, eltype (x), getsize (chunksize)
4646 }. (vec (x), ForwardDiff. Partials .(first (p)))
47- t = ArrayInterfaceCore . restructure (x, _t)
47+ t = ArrayInterface . restructure (x, _t)
4848 end
4949
5050 if dx isa Nothing
5151 fx = similar (t)
5252 _dx = similar (x)
5353 else
54- tup = ArrayInterfaceCore . allowed_getindex (ArrayInterfaceCore . allowed_getindex (p, 1 ),
54+ tup = ArrayInterface . allowed_getindex (ArrayInterface . allowed_getindex (p, 1 ),
5555 1 ) .* false
5656 _pi = adapt (parameterless_type (dx), [tup for i in 1 : length (dx)])
5757 fx = reshape (Dual {T, eltype(dx), length(tup)} .(vec (dx), ForwardDiff. Partials .(_pi)),
156156function forwarddiff_color_jacobian (f:: F , x:: AbstractArray{<:Number} ,
157157 jac_cache:: ForwardColorJacCache ,
158158 jac_prototype = nothing ) where {F}
159- if jac_prototype isa Nothing ? ArrayInterfaceCore . ismutable (x) :
160- ArrayInterfaceCore . ismutable (jac_prototype)
159+ if jac_prototype isa Nothing ? ArrayInterface . ismutable (x) :
160+ ArrayInterface . ismutable (jac_prototype)
161161 # Whenever J is mutable, we mutate it to avoid allocations
162162 dx = jac_cache. dx
163163 vecx = vec (x)
@@ -190,7 +190,7 @@ function forwarddiff_color_jacobian(J::AbstractMatrix{<:Number}, f::F,
190190 nrows, ncols = size (J)
191191
192192 if ! (sparsity isa Nothing)
193- rows_index, cols_index = ArrayInterfaceCore . findstructralnz (sparsity)
193+ rows_index, cols_index = ArrayInterface . findstructralnz (sparsity)
194194 rows_index = [rows_index[i] for i in 1 : length (rows_index)]
195195 cols_index = [cols_index[i] for i in 1 : length (cols_index)]
196196 end
@@ -267,7 +267,7 @@ function forwarddiff_color_jacobian_immutable(f, x::AbstractArray{<:Number},
267267 nrows, ncols = size (J)
268268
269269 if ! (sparsity isa Nothing)
270- rows_index, cols_index = ArrayInterfaceCore . findstructralnz (sparsity)
270+ rows_index, cols_index = ArrayInterface . findstructralnz (sparsity)
271271 rows_index = [rows_index[i] for i in 1 : length (rows_index)]
272272 cols_index = [cols_index[i] for i in 1 : length (cols_index)]
273273 end
@@ -317,7 +317,7 @@ function forwarddiff_color_jacobian!(J::AbstractMatrix{<:Number},
317317 x:: AbstractArray{<:Number} ;
318318 dx = similar (x, size (J, 1 )),
319319 colorvec = 1 : length (x),
320- sparsity = ArrayInterfaceCore . has_sparsestruct (J) ? J :
320+ sparsity = ArrayInterface . has_sparsestruct (J) ? J :
321321 nothing )
322322 forwarddiff_color_jacobian! (J, f, x,
323323 ForwardColorJacCache (f, x, dx = dx, colorvec = colorvec,
@@ -347,7 +347,7 @@ function forwarddiff_color_jacobian!(J::AbstractMatrix{<:Number},
347347 end
348348
349349 if FiniteDiff. _use_findstructralnz (sparsity)
350- rows_index, cols_index = ArrayInterfaceCore . findstructralnz (sparsity)
350+ rows_index, cols_index = ArrayInterface . findstructralnz (sparsity)
351351 else
352352 rows_index = 1 : size (J, 1 )
353353 cols_index = 1 : size (J, 2 )
@@ -385,7 +385,7 @@ function forwarddiff_color_jacobian!(J::AbstractMatrix{<:Number},
385385 dx .= partials .(fx, j)
386386 end
387387
388- if ArrayInterfaceCore . fast_scalar_indexing (dx)
388+ if ArrayInterface . fast_scalar_indexing (dx)
389389 # dx is implicitly used in vecdx
390390 if sparseCSC_common_sparsity
391391 FiniteDiff. _colorediteration! (J, vecdx, colorvec, color_i, ncols)
0 commit comments