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

Func on mani #8

Merged
merged 3 commits into from
Jun 2, 2015
Merged

Func on mani #8

merged 3 commits into from
Jun 2, 2015

Conversation

fdarricau
Copy link
Contributor

Interfacing the FunctionOnManifold implementation, to let it support virtually every RobOptim's Function type, and thus supporting for instance hessian computing on manifolds, which wasn't supported before.

Delca and others added 2 commits June 1, 2015 17:38

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@fdarricau fdarricau force-pushed the funcOnMani branch 2 times, most recently from b7daad8 to bec55f7 Compare June 2, 2015 04:33
long mappingFromFunctionSize_;

/// \brief array representing the restricted mapping for the tangent problem
size_t* tangentMappingFromFunction_;
Copy link
Member

Choose a reason for hiding this comment

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

Why not use a std::vector<size_t> for mappingFromFunction_ and tangentMappingFromFunction_?

Copy link
Contributor

Choose a reason for hiding this comment

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

Those are fixed-size arrays whose size will be known at runtime, so maybe we could use std::array, but a std::vector is not necessary here.

Copy link
Member

Choose a reason for hiding this comment

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

I would simply advise against using C-style arrays with new/delete when we could use the STL, unless there is a good reason for that.

Delca added a commit that referenced this pull request Jun 2, 2015
Interfacing the FunctionOnManifold implementation, to let it support virtually every RobOptim's Function type, and thus supporting (for instance) hessian computing on manifolds, which wasn't supported before.
@Delca Delca merged commit 185832f into master Jun 2, 2015
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.

None yet

3 participants