Skip to content

Commit

Permalink
Merge pull request #603 from JuliaSymbolics/core
Browse files Browse the repository at this point in the history
Change to ArrayInterfaceCore and speed up using time
  • Loading branch information
ChrisRackauckas authored May 22, 2022
2 parents 41d1474 + 3c7e7eb commit e81e14d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["Shashi Gowda <[email protected]>"]
version = "4.5.1"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2"
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
DiffRules = "b552c78f-8df3-52c6-915a-8e097449b14b"
Expand Down Expand Up @@ -33,7 +33,7 @@ TermInterface = "8ea1fca8-c5ef-4a55-8b96-4e9afe9c9a3c"
TreeViews = "a2a6695c-b41b-5b7d-aed9-dbfdeacea5d7"

[compat]
ArrayInterface = "3, 4, 5"
ArrayInterfaceCore = "0.1.1"
ConstructionBase = "1.1, 1.2"
DataStructures = "0.18"
DiffRules = "0.1, 1.0"
Expand Down
2 changes: 1 addition & 1 deletion src/Symbolics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import Metatheory.Rewriters: Chain, Prewalk, Postwalk, Fixpoint

import SymbolicUtils.Code: toexpr

import ArrayInterface
import ArrayInterfaceCore

using RuntimeGeneratedFunctions
RuntimeGeneratedFunctions.init(@__MODULE__)
Expand Down
2 changes: 1 addition & 1 deletion src/diff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ Return the sparsity pattern of the Jacobian of the mutating function `op!(output
function jacobian_sparsity(op!,output::Array{T},input::Array{T}, args...) where T<:Number
eqs=similar(output,Num)
fill!(eqs,false)
vars=ArrayInterface.restructure(input,[variable(i) for i in eachindex(input)])
vars=ArrayInterfaceCore.restructure(input,[variable(i) for i in eachindex(input)])
op!(eqs,vars, args...)
jacobian_sparsity(eqs,vars)
end
Expand Down

0 comments on commit e81e14d

Please sign in to comment.