Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 4f24890

Browse files
Merge pull request #46 from SciML/arrayinterface
update to ArrayInterface v7
2 parents ecbe9d1 + 531d998 commit 4f24890

File tree

4 files changed

+6
-6
lines changed

4 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 = ["SciML"]
44
version = "0.1.11"
55

66
[deps]
7-
ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2"
7+
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
88
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
99
FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"
1010
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
@@ -22,7 +22,7 @@ NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
2222
SimpleBatchedNonlinearSolveExt = "NNlib"
2323

2424
[compat]
25-
ArrayInterfaceCore = "0.1.1"
25+
ArrayInterface = "7"
2626
DiffEqBase = "6.114"
2727
FiniteDiff = "2"
2828
ForwardDiff = "0.10.3"

ext/SimpleBatchedNonlinearSolveExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module SimpleBatchedNonlinearSolveExt
22

3-
using ArrayInterfaceCore, LinearAlgebra, SimpleNonlinearSolve, SciMLBase
3+
using ArrayInterface, LinearAlgebra, SimpleNonlinearSolve, SciMLBase
44
isdefined(Base, :get_extension) ? (using NNlib) : (using ..NNlib)
55

66
_batch_transpose(x) = reshape(x, 1, size(x)...)
@@ -20,7 +20,7 @@ function _batched_mul(x::AbstractArray{T1, 3}, y::AbstractArray{T2, 3}) where {T
2020
end
2121

2222
function _init_J_batched(x::AbstractMatrix{T}) where {T}
23-
J = ArrayInterfaceCore.zeromatrix(x[:, 1])
23+
J = ArrayInterface.zeromatrix(x[:, 1])
2424
if ismutable(x)
2525
J[diagind(J)] .= one(eltype(x))
2626
else

src/SimpleNonlinearSolve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using FiniteDiff, ForwardDiff
55
using ForwardDiff: Dual
66
using StaticArraysCore
77
using LinearAlgebra
8-
import ArrayInterfaceCore
8+
import ArrayInterface
99
using DiffEqBase
1010

1111
@reexport using SciMLBase

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ value(x::Dual) = ForwardDiff.value(x)
3535
value(x::AbstractArray{<:Dual}) = map(ForwardDiff.value, x)
3636

3737
function init_J(x)
38-
J = ArrayInterfaceCore.zeromatrix(x)
38+
J = ArrayInterface.zeromatrix(x)
3939
if ismutable(x)
4040
J[diagind(J)] .= one(eltype(x))
4141
else

0 commit comments

Comments
 (0)