Skip to content

Why GeometryData is not a template class of scalars? #2579

Closed Answered by jcarpent
cmastalli asked this question in Q&A
Discussion options

You must be logged in to vote

Concretely, there is a compilation error as data.oMi[joint_id] uses a float while geom_data.oMg[i] uses a double.

We did not templatized Geometry{Model,Data} because coal is not a templatized libraries. It has no meaning to do automatic code-generation or automatic differentiation over all the types of geometries supported by COAL.
Yet, with @lmontaut, we are thinking on supporting floating precision for COAL. But we will do in a non-templatized way to save our time and limit bad computational behaviors.

Replies: 2 comments 7 replies

Comment options

cmastalli
Feb 13, 2025
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@jcarpent
Comment options

@cmastalli
Comment options

cmastalli Feb 14, 2025
Collaborator Author

@cmastalli
Comment options

cmastalli Feb 14, 2025
Collaborator Author

@jcarpent
Comment options

Answer selected by jcarpent
@cmastalli
Comment options

cmastalli Feb 14, 2025
Collaborator Author

@jcarpent
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #2577 on February 14, 2025 08:01.