We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In
template <typename T, precision P> tquat<T, P> log(tquat<T, P> const& q)
at the end you compute log(QuatLen), which is log(sqrt(...)), but you can shave off the sqrt since you're already computing a logarithm, by exploiting
log(QuatLen)
log(sqrt(...))
log(sqrt(x)) = log(pow(x,0.5)) = 0.5*log(x)
No other use of QuatLen is made in the combinator.
The text was updated successfully, but these errors were encountered:
Optimized quaternion log function #554
0675da4
Thanks for contributing! Christophe
Sorry, something went wrong.
Groovounet
No branches or pull requests
In
at the end you compute
log(QuatLen)
, which islog(sqrt(...))
, but you can shave off the sqrt since you're already computing a logarithm, by exploitingNo other use of QuatLen is made in the combinator.
The text was updated successfully, but these errors were encountered: