Skip to content

Commit

Permalink
change to ArrayInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
vyudu committed Nov 22, 2024
1 parent c15f8a4 commit 4e19616
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/scimlfunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4095,15 +4095,15 @@ function BVPFunction{iip, specialize, twopoint}(f, bc;
end

if jac_prototype !== nothing && colorvec === nothing &&
ArrayInterfaceCore.fast_matrix_colors(jac_prototype)
_colorvec = ArrayInterfaceCore.matrix_colors(jac_prototype)
ArrayInterface.fast_matrix_colors(jac_prototype)
_colorvec = ArrayInterface.matrix_colors(jac_prototype)
else
_colorvec = colorvec
end

if bcjac_prototype !== nothing && bccolorvec === nothing &&
ArrayInterfaceCore.fast_matrix_colors(bcjac_prototype)
_bccolorvec = ArrayInterfaceCore.matrix_colors(bcjac_prototype)
ArrayInterface.fast_matrix_colors(bcjac_prototype)
_bccolorvec = ArrayInterface.matrix_colors(bcjac_prototype)
else
_bccolorvec = bccolorvec
end
Expand Down Expand Up @@ -4268,15 +4268,15 @@ function DynamicalBVPFunction{iip, specialize, twopoint}(f, bc;
end

if jac_prototype !== nothing && colorvec === nothing &&
ArrayInterfaceCore.fast_matrix_colors(jac_prototype)
_colorvec = ArrayInterfaceCore.matrix_colors(jac_prototype)
ArrayInterface.fast_matrix_colors(jac_prototype)
_colorvec = ArrayInterface.matrix_colors(jac_prototype)
else
_colorvec = colorvec
end

if bcjac_prototype !== nothing && bccolorvec === nothing &&
ArrayInterfaceCore.fast_matrix_colors(bcjac_prototype)
_bccolorvec = ArrayInterfaceCore.matrix_colors(bcjac_prototype)
ArrayInterface.fast_matrix_colors(bcjac_prototype)
_bccolorvec = ArrayInterface.matrix_colors(bcjac_prototype)
else
_bccolorvec = bccolorvec
end
Expand Down

0 comments on commit 4e19616

Please sign in to comment.