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

Generalize Function::factory when handling multiple Jacobian/Hessian blocks #2696

Closed
jaeandersson opened this issue Dec 11, 2020 · 0 comments
Assignees
Milestone

Comments

@jaeandersson
Copy link
Member

If you are requesting multiple Jacobian blocks, Function::factory will currently call "jacobian" repeatedly, which can be quite inefficient. For example, if you have f(x, z) and you need both df/dx and df/dz, they will be calculated separately, which is probably not what the user wants. If you do want to calculate them separately, you'll probably make two separate calls to Function::factory.

jaeandersson added a commit that referenced this issue Dec 11, 2020
jaeandersson added a commit that referenced this issue Dec 11, 2020
…locks with the same input but different outputs
jaeandersson added a commit that referenced this issue Dec 13, 2020
…fault

Use triu: attribute to get old behavior
@jaeandersson jaeandersson self-assigned this Dec 15, 2020
@jaeandersson jaeandersson added this to the Version 3.6 milestone Dec 15, 2020
danielodenbrandmodelon pushed a commit to modelonandrijakukolj/casadi that referenced this issue Dec 16, 2020
danielodenbrandmodelon pushed a commit to modelonandrijakukolj/casadi that referenced this issue Dec 16, 2020
danielodenbrandmodelon pushed a commit to modelonandrijakukolj/casadi that referenced this issue Dec 16, 2020
…alculation

Non-diff blocks calculated first
danielodenbrandmodelon pushed a commit to modelonandrijakukolj/casadi that referenced this issue Dec 16, 2020
…bian blocks with the same input but different outputs
danielodenbrandmodelon pushed a commit to modelonandrijakukolj/casadi that referenced this issue Dec 16, 2020
… by default

Use triu: attribute to get old behavior
danielodenbrandmodelon pushed a commit to modelonandrijakukolj/casadi that referenced this issue Dec 16, 2020
danielodenbrandmodelon pushed a commit to modelonandrijakukolj/casadi that referenced this issue Dec 16, 2020
danielodenbrandmodelon pushed a commit to modelonandrijakukolj/casadi that referenced this issue Dec 16, 2020
danielodenbrandmodelon pushed a commit to modelonandrijakukolj/casadi that referenced this issue Dec 16, 2020
danielodenbrandmodelon pushed a commit to modelonandrijakukolj/casadi that referenced this issue Dec 16, 2020
danielodenbrandmodelon pushed a commit to modelonandrijakukolj/casadi that referenced this issue Dec 16, 2020
jcotem pushed a commit to jcotem/casadi that referenced this issue Sep 12, 2022
jcotem pushed a commit to jcotem/casadi that referenced this issue Sep 12, 2022
jcotem pushed a commit to jcotem/casadi that referenced this issue Sep 12, 2022
…alculation

Non-diff blocks calculated first
jcotem pushed a commit to jcotem/casadi that referenced this issue Sep 12, 2022
…bian blocks with the same input but different outputs
jcotem pushed a commit to jcotem/casadi that referenced this issue Sep 12, 2022
… by default

Use triu: attribute to get old behavior
jcotem pushed a commit to jcotem/casadi that referenced this issue Sep 12, 2022
jcotem pushed a commit to jcotem/casadi that referenced this issue Sep 12, 2022
jcotem pushed a commit to jcotem/casadi that referenced this issue Sep 12, 2022
jcotem pushed a commit to jcotem/casadi that referenced this issue Sep 12, 2022
jcotem pushed a commit to jcotem/casadi that referenced this issue Sep 12, 2022
jgillis added a commit that referenced this issue Mar 20, 2023
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

No branches or pull requests

1 participant