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

Add a set of constexpr math functions #679

Open
jolting opened this issue Mar 7, 2018 · 5 comments
Open

Add a set of constexpr math functions #679

jolting opened this issue Mar 7, 2018 · 5 comments
Labels
help wanted We seek help from someone willing to work on this topic!

Comments

@jolting
Copy link
Member

jolting commented Mar 7, 2018

For example, ::cos is not a constexpr.
I think this can be useful for constexpr pose composition.

@jlblancoc
Copy link
Member

Exactly, that's what remains to be done before we are able to perform complex SE(2) / SE(3) operations at compile time... 👍

Though, I can only think of look-up-tables as a way to evaluate sin/cos as constexpr... Let's wait some time just in case we find a better solution.

@jolting
Copy link
Member Author

jolting commented Mar 7, 2018

Looks like builtins like __builtin_sinf can be constexpr in gcc. Not in clang.

Not sure about msvc.

@jolting
Copy link
Member Author

jolting commented Mar 12, 2018

@jolting
Copy link
Member Author

jolting commented Mar 12, 2018

@jlblancoc jlblancoc added the help wanted We seek help from someone willing to work on this topic! label Oct 20, 2018
@jlblancoc
Copy link
Member

jlblancoc commented Nov 4, 2018

Looks like the C++ committee wants to eventually turn almost everything constexpr-capable, so that's good news! But also probably means any attempt on our side will eventually become obsolete... e.g. our current constexpr string...
Let's see what to do.

See: https://www.youtube.com/watch?v=CRDNPwXDVp0&t=1s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted We seek help from someone willing to work on this topic!
Projects
None yet
Development

No branches or pull requests

2 participants