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

gradient assignation in numeric-quadratic-funtion.hh fails #90

Closed
fdarricau opened this issue Apr 13, 2015 · 0 comments
Closed

gradient assignation in numeric-quadratic-funtion.hh fails #90

fdarricau opened this issue Apr 13, 2015 · 0 comments

Comments

@fdarricau
Copy link
Contributor

Following Pull Request #89, it seems that the way gradient_t is defined (using rowVectors) is causing it to fail.

Indeed, in the line
https://github.com/roboptim/roboptim-core/blob/master/include/roboptim/core/numeric-quadratic-function.hxx#L120
the assignment gradient.noalias() = 2 * a_ * x; triggers an unwanted allocation, that causes the test suite to fail if ROBOPTIM_DO_NOT_CHECK_ALLOCATION is set to true.

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

2 participants