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

Dynamic Autodiff should report the number of parameter blocks to the functor #100

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

- In the dynamic autodiff'd cost functor, it would be nice to have the number 
of parameters in the operator() argument. This information is here duplicated, 
while it is known by Ceres when calling AddParameterBlock on the 
DynamicAutoDiffCostFunction object. Moreover, the current situation forces the 
creation of as many functor objets as there are variations on the number of 
parameters (or worse, using dummy parameters), while if the number of 
parameters was available then only one functor would be needed. Something like :
  template<typename T> bool operator() (const std::vector<const* T>* parameters, T* residuals) const;
or, for free-style arrays:
  template<typename T> bool operator() (const int num_parameters, T const* const* parameters, T* residuals) const;

Original issue reported on code.google.com by [email protected] on 28 Apr 2013 at 12:15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant