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 include/cute/numeric/integral_constant.hpp
#define CUTE_LEFT_UNARY_OP(OP) \ template <auto t> CUTE_HOST_DEVICE constexpr C<(OP t)> operator OP(C<t>) { return {}; } CUTE_LEFT_UNARY_OP(+); CUTE_LEFT_UNARY_OP(-); CUTE_LEFT_UNARY_OP(~); CUTE_LEFT_UNARY_OP(!); CUTE_LEFT_UNARY_OP(*);
how to use <* t> in template?
constexpr auto mul_five = C<* 5>{}; is not correct.
constexpr auto mul_five = C<* 5>{};
The text was updated successfully, but these errors were encountered:
@thakkarV
Sorry, something went wrong.
This is not a multiplication operator, this is a unary dereference operator.
Although it is not likely used (yet), pointers can be constexpr as well.
#include <cute/tensor.hpp> using namespace cute; int main() { static constexpr int a[] = {4,3,2,1}; auto cute_ptr = C<a>{}; auto cute_val = *cute_ptr; static_assert(cute_val == 4); }
No branches or pull requests
in include/cute/numeric/integral_constant.hpp
how to use <* t> in template?
constexpr auto mul_five = C<* 5>{};
is not correct.
The text was updated successfully, but these errors were encountered: