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

polynomial type with non Eigen types #53

Open
stonneau opened this issue Sep 27, 2020 · 4 comments
Open

polynomial type with non Eigen types #53

stonneau opened this issue Sep 27, 2020 · 4 comments

Comments

@stonneau
Copy link
Collaborator

stonneau commented Sep 27, 2020

In the current implementation of the polynomial class, the coefficients are stored using an Eigen matrix and not a vector.
If other types are used (such as linear_variable), the polynomial class will not work.
We should either change this or remove the point type form the template definition as it is useless.
The coefficients should be stored as std::vector.

Is there any reasons this has been done differently ?
@JasonChmn @proyan

@MaximilienNaveau
Copy link
Contributor

Moreover you cannot create a simple 1D polynomial easily like this.
I was looking for a simple min jerk solver, I managed with ndcurves but it's a bit convoluted to use Eigen::Vector::One(1) for the initialization.

@stonneau
Copy link
Collaborator Author

stonneau commented Mar 4, 2022 via email

@MaximilienNaveau
Copy link
Contributor

Yes we should be implementing the template specialization for the type double.
The size of everything should be considered 1 or have an inner converter from double to Eigen and use the current implementation.
Not sure what is the best way... I am a very new user of ndcurves.

@stonneau
Copy link
Collaborator Author

stonneau commented Mar 7, 2022

We had that before, but the issue is with the python bindings I think. @JasonChmn could you recall the issue

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