sonible / VCTR

A powerful C++ 20 wrapper around your favorite standard library containers
https://sonible.github.io/VCTR/
Other
25 stars 1 forks source link

Vctr 54 implement pow #79

Closed JanosGit closed 1 year ago

JanosGit commented 1 year ago

I added some macros to avoid repeating boilerplate code for binary expressions. I'd like to do some further refactoring for the existing VCTR_COMMON_UNARY_EXPRESSION_MEMBERS macro and rework the handling of SIMD registers in VCTR_COMMON_BINARY_SINGLE_VEC_EXPRESSION_MEMBERS, but decided to introduce this changes step by step along with the upcoming PRs to not bloat the diff too much ;)

JanosGit commented 1 year ago

Not really sure what these linux build errors are about – seems to be some internals of std::pow being unable to resolve a correct std::abs overload that's used inside. However, I think all the test types used here should be valid for std::pow. Any idea?