Skip to content

Commit d9d516c

Browse files
Merge pull request #247 from SciML/core
Change to ArrayInterfaceCore
2 parents a989d96 + 04ef232 commit d9d516c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors = ["Vaibhavdixit02 <[email protected]>"]
44
version = "3.2.1"
55

66
[deps]
7-
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
7+
ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2"
88
ConsoleProgressMonitor = "88cd18e8-d9cc-4ea6-8889-5259c0d15c8b"
99
DiffResults = "163ba53b-c6d8-5494-b064-1a9d43ac40c5"
1010
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
@@ -19,7 +19,7 @@ SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
1919
TerminalLoggers = "5d786b92-1e48-4d6f-9151-6b4477ca9bed"
2020

2121
[compat]
22-
ArrayInterface = "2.13, 3.0, 4, 5"
22+
ArrayInterfaceCore = "0.1.1"
2323
ConsoleProgressMonitor = "0.1"
2424
DiffResults = "1.0"
2525
DocStringExtensions = "0.8"

src/GalacticOptim.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ using Reexport
99
using Requires
1010
using DiffResults
1111
using Logging, ProgressLogging, ConsoleProgressMonitor, TerminalLoggers, LoggingExtras
12-
using ArrayInterface, Base.Iterators
12+
using ArrayInterfaceCore, Base.Iterators
1313
using Pkg
1414

1515
import SciMLBase: OptimizationProblem, OptimizationFunction, AbstractADType

src/function/finitediff.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function instantiate_function(f, x, adtype::AutoFiniteDiff, p, num_cons = 0)
2424

2525
if f.hv === nothing
2626
hv = function (H, θ, v, args...)
27-
res = ArrayInterface.zeromatrix(θ)
27+
res = ArrayInterfaceCore.zeromatrix(θ)
2828
hess(res, θ, args...)
2929
H .= res*v
3030
end

src/function/forwarddiff.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function instantiate_function(f::OptimizationFunction{true}, x, ::AutoForwardDif
3333

3434
if f.hv === nothing
3535
hv = function (H,θ,v, args...)
36-
res = ArrayInterface.zeromatrix(θ)
36+
res = ArrayInterfaceCore.zeromatrix(θ)
3737
hess(res, θ, args...)
3838
H .= res*v
3939
end

src/function/mtk.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function instantiate_function(f, x, ad::AutoModelingToolkit, p, num_cons=0)
2525

2626
if f.hv === nothing
2727
hv = function (H, θ, v, args...)
28-
res = ArrayInterface.zeromatrix(θ)
28+
res = ArrayInterfaceCore.zeromatrix(θ)
2929
hess(res, θ, args...)
3030
H .= res * v
3131
end

0 commit comments

Comments
 (0)