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

Override dense hessian behavior #67

Closed
wants to merge 4 commits into from
Closed

Conversation

arvigj
Copy link
Contributor

@arvigj arvigj commented Jan 5, 2024

Currently, dense hessian calls a finite difference routine. This makes it rely on the sparse hessian.

Copy link

codecov bot commented Jan 5, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (d65d1b1) 87.27% compared to head (1cdc13a) 88.81%.

❗ Current head 1cdc13a differs from pull request most recent head 28dbe03. Consider uploading reports for the commit 28dbe03 to get more accurate results

Files Patch % Lines
src/polysolve/nonlinear/Problem.hpp 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #67      +/-   ##
==========================================
+ Coverage   87.27%   88.81%   +1.53%     
==========================================
  Files          48       51       +3     
  Lines        2028     2002      -26     
==========================================
+ Hits         1770     1778       +8     
+ Misses        258      224      -34     
Flag Coverage Δ
polysolve 88.81% <0.00%> (+1.53%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

virtual void hessian(const TVector &x, TDenseHessian &hessian)
{
THessian sparse_hessian;
this->hessian(x, sparse_hessian);
Copy link
Member

Choose a reason for hiding this comment

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

better to throw

@zfergus
Copy link
Member

zfergus commented Feb 15, 2024

This was implemented in #66.

@zfergus zfergus closed this Feb 15, 2024
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