Skip to content

Conversation

@PatWie
Copy link
Owner

@PatWie PatWie commented Mar 5, 2025

No description provided.

PatWie added 2 commits March 4, 2025 20:08
To avoid copies, we instead compute the correct indicies. And we make
use of the Hessian if available.
x(rhs.x.eval()),
gradient(rhs.gradient.eval()),
hessian(rhs.hessian.eval()) {}
State(const state_t &rhs) : x(rhs.x.eval()) {}
Copy link

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Single-parameter constructors should be marked explicit. [runtime/explicit] [4]

@PatWie PatWie merged commit 6e17c80 into main Mar 5, 2025
1 check passed
@PatWie PatWie deleted the state branch March 5, 2025 20:40
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.

2 participants