Skip to content
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

hessian_sparsity fails with registered funcitons #749

Closed
baggepinnen opened this issue Sep 26, 2022 · 0 comments · Fixed by #1384
Closed

hessian_sparsity fails with registered funcitons #749

baggepinnen opened this issue Sep 26, 2022 · 0 comments · Fixed by #1384

Comments

@baggepinnen
Copy link
Collaborator

baggepinnen commented Sep 26, 2022

Due to unknown linearity

ERROR: Failed to apply rule (~f)(~(x::isidx)) => if haslinearity_1(~f)
        #= /home/fredrikb/.julia/packages/Symbolics/J8IHJ/src/diff.jl:586 =#
        combine_terms_1(linearity_1(~f), ~x)
    else
        #= /home/fredrikb/.julia/packages/Symbolics/J8IHJ/src/diff.jl:588 =#
        error("Function of unknown linearity used: ", ~f)
    end on expression Base.FastMath.exp_fast(Symbolics.TermCombination(Set([Dict(139 => 1), Dict(139 => 2)])))

How would one go about registering the derivative for a function as well?

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 a pull request may close this issue.

1 participant