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

close #48: clean up code, add new math::pow function #54

Merged

Conversation

psychocoderHPC
Copy link
Member

  • move basisLib/vector/Vector.tpp to math/vector/Vector.tpp (trait definitions)
  • delete old folder basisLib
  • fix all dependencies
  • add universal definition of pow
    • add specilisation for float (C++98 standard)
    • add specialisation for double (C++98 standard)
    • add pow specilisation for pow(vector,scalar)
    • add comments for better overview of specilisations

…w function

- move basisLib/vector/Vector.tpp to math/vector/Vector.tpp (trait definitions)
- delete old folder basisLib
- fix all dependencies
- add specialization for float (C++98 standard)
- add specialization for pow(vector,scalar)
- add comments for better overview of specializations
- add specialisation for double (C++98 standard)
@ghost ghost assigned ax3l Sep 18, 2013
HDINLINE result operator()(const float& base,const int& exponent)
{
#ifdef __CUDA_ARCH__ /*device version*/
return ::powf(base, exponent);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: implicit cast exponent: int -> float (at least <= CUDA 5.5)

ax3l added a commit that referenced this pull request Sep 18, 2013
close #48: clean up code, add new math::pow function
@ax3l ax3l merged commit b7e904d into ComputationalRadiationPhysics:dev Sep 18, 2013
@psychocoderHPC psychocoderHPC deleted the feature/math_pow branch September 18, 2013 18:43
ax3l pushed a commit to ax3l/picongpu that referenced this pull request Feb 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants