Skip to content

remove deprecated SparsityDetection #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 10, 2022

Conversation

ArnoStrouwen
Copy link
Contributor

Removes reliance on deprecated SparsityDetection.jl package.

A decision has to be made if we want to directly support sparsity detection here, through a small wrapper around the newer functionality in Symbolics.jl.

@codecov-commenter
Copy link

codecov-commenter commented Oct 9, 2022

Codecov Report

Base: 81.40% // Head: 81.40% // No change to project coverage 👍

Coverage data is based on head (9b34e50) compared to base (e89cc31).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #205   +/-   ##
=======================================
  Coverage   81.40%   81.40%           
=======================================
  Files          15       15           
  Lines         898      898           
=======================================
  Hits          731      731           
  Misses        167      167           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines 1 to 8
function jacobian_sparsity(func::Function, output::AbstractVector{T}, input::AbstractVector{T}; kwargs...) where {T<:Number}
Symbolics.jacobian_sparsity(func,output,input)
end
function hessian_sparsity(func::Function, input::AbstractVector{T}; kwargs...) where {T<:Number}
vars = map(Symbolics.variable, eachindex(input))
expr = func(vars; kwargs...)
Symbolics.hessian_sparsity(expr, vars)
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should go to Symbolics.jl. It's type piracy here.

@ChrisRackauckas
Copy link
Member

Add the extra helper functions to Symbolics.jl, with some docs. It should really only be tested here.

@ChrisRackauckas
Copy link
Member

Released, so try removing now

@ChrisRackauckas ChrisRackauckas merged commit 79ef4e2 into JuliaDiff:master Oct 10, 2022
@ArnoStrouwen ArnoStrouwen deleted the sparsity_detection branch October 10, 2022 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants