math.hpp Source File#
tile/core/numeric/math.hpp
Go to the documentation of this file.
Definition tile/core/algorithm/cluster_descriptor.hpp:13
__host__ __device__ less_equal() -> less_equal< void, void >
FIXME: create macro to replace 'host device' and nothing more.
CK_TILE_HOST_DEVICE constexpr bool is_power_of_two_integer(int32_t x)
Definition tile/core/numeric/math.hpp:462
__host__ __device__ multiplies() -> multiplies< void, void >
FIXME: create macro to replace 'host device' and nothing more.
CK_TILE_HOST_DEVICE constexpr auto integer_divide_floor(X x, Y y)
Definition tile/core/numeric/math.hpp:143
CK_TILE_HOST_DEVICE constexpr T clamp(const T &x, const T &lowerbound, const T &upperbound)
Definition tile/core/numeric/math.hpp:259
__host__ __device__ minus() -> minus< void, void >
FIXME: create macro to replace 'host device' and nothing more.
__host__ __device__ less() -> less< void, void >
FIXME: create macro to replace 'host device' and nothing more.
__host__ __device__ scales(Scale) -> scales< Scale >
FIXME: create macro to replace 'host device' and nothing more.
CK_TILE_HOST_DEVICE constexpr index_t gcd(index_t x, index_t y)
Definition tile/core/numeric/math.hpp:268
CK_TILE_HOST_DEVICE constexpr auto integer_divide_ceil(X x, Y y)
Definition tile/core/numeric/math.hpp:149
CK_TILE_HOST_DEVICE constexpr auto integer_least_multiple(X x, Y y)
Definition tile/core/numeric/math.hpp:155
__host__ __device__ equal() -> equal< void, void >
FIXME: create macro to replace 'host device' and nothing more.
CK_TILE_DEVICE uint32_t sad_u32(uint32_t x, uint32_t y, uint32_t acc)
Definition tile/core/numeric/math.hpp:504
CK_TILE_HOST_DEVICE constexpr auto next_power_of_two()
Definition tile/core/numeric/math.hpp:442
CK_TILE_DEVICE uint16_t sad_u16(uint16_t x, uint16_t y, uint16_t acc)
Definition tile/core/numeric/math.hpp:499
CK_TILE_HOST_DEVICE constexpr int32_t integer_log2_floor(int32_t x)
Definition tile/core/numeric/math.hpp:455
CK_TILE_HOST_DEVICE constexpr Y type_convert(X x)
Definition tile/core/numeric/type_convert.hpp:29
CK_TILE_HOST_DEVICE constexpr auto lcm(X x, Y y)
Definition tile/core/numeric/math.hpp:314
__host__ __device__ plus() -> plus< void, void >
FIXME: create macro to replace 'host device' and nothing more.
CK_TILE_HOST_DEVICE constexpr bool operator()(double lhs, double rhs) const
Definition tile/core/numeric/math.hpp:363
CK_TILE_HOST_DEVICE constexpr bool operator()(float lhs, float rhs) const
Definition tile/core/numeric/math.hpp:354
CK_TILE_HOST_DEVICE constexpr auto operator()(const Left &lhs, const Right &rhs) const -> decltype(lhs==rhs)
Definition tile/core/numeric/math.hpp:341
Definition tile/core/numeric/math.hpp:329
CK_TILE_HOST_DEVICE constexpr auto operator()(const Left &lhs, const Right &rhs) const -> decltype(lhs==rhs)
Definition tile/core/numeric/math.hpp:330
Definition tile/core/numeric/math.hpp:134
CK_TILE_HOST_DEVICE constexpr T operator()(T a, T b) const
Definition tile/core/numeric/math.hpp:135
CK_TILE_HOST_DEVICE constexpr auto operator()(const Left &lhs, const Right &rhs) const -> decltype(lhs< rhs)
Definition tile/core/numeric/math.hpp:383
CK_TILE_HOST_DEVICE constexpr bool operator()(double lhs, double rhs) const
Definition tile/core/numeric/math.hpp:429
CK_TILE_HOST_DEVICE constexpr bool operator()(float lhs, float rhs) const
Definition tile/core/numeric/math.hpp:420
CK_TILE_HOST_DEVICE constexpr auto operator()(const Left &lhs, const Right &rhs) const -> decltype(lhs<=rhs)
Definition tile/core/numeric/math.hpp:407
Definition tile/core/numeric/math.hpp:395
CK_TILE_HOST_DEVICE constexpr auto operator()(const Left &lhs, const Right &rhs) const -> decltype(lhs<=rhs)
Definition tile/core/numeric/math.hpp:396
Definition tile/core/numeric/math.hpp:371
CK_TILE_HOST_DEVICE constexpr auto operator()(const Left &lhs, const Right &rhs) const -> decltype(lhs< rhs)
Definition tile/core/numeric/math.hpp:372
static constexpr double value
Definition tile/core/numeric/math.hpp:478
Definition tile/core/numeric/math.hpp:473
Definition tile/core/numeric/math.hpp:122
CK_TILE_HOST_DEVICE constexpr T operator()(T a, T b) const
Definition tile/core/numeric/math.hpp:123
Definition tile/core/numeric/math.hpp:128
CK_TILE_HOST_DEVICE constexpr T operator()(T a, T b) const
Definition tile/core/numeric/math.hpp:129
CK_TILE_HOST_DEVICE constexpr auto operator()(const Left &lhs, const Right &rhs) const -> decltype(lhs - rhs)
Definition tile/core/numeric/math.hpp:86
Definition tile/core/numeric/math.hpp:74
CK_TILE_HOST_DEVICE constexpr auto operator()(const Left &lhs, const Right &rhs) const -> decltype(lhs - rhs)
Definition tile/core/numeric/math.hpp:75
CK_TILE_HOST_DEVICE constexpr auto operator()(const Left &lhs, const Right &rhs) const -> decltype(lhs *rhs)
Definition tile/core/numeric/math.hpp:110
Definition tile/core/numeric/math.hpp:98
CK_TILE_HOST_DEVICE constexpr auto operator()(const Left &lhs, const Right &rhs) const -> decltype(lhs *rhs)
Definition tile/core/numeric/math.hpp:99
CK_TILE_HOST_DEVICE constexpr auto operator()(const Left &lhs, const Right &rhs) const -> decltype(lhs+rhs)
Definition tile/core/numeric/math.hpp:62
Definition tile/core/numeric/math.hpp:50
CK_TILE_HOST_DEVICE constexpr auto operator()(const Left &lhs, const Right &rhs) const -> decltype(lhs+rhs)
Definition tile/core/numeric/math.hpp:51
Definition tile/core/numeric/math.hpp:18
CK_TILE_HOST_DEVICE constexpr auto operator()(const Right &rhs) const -> decltype(lhs *rhs)
Definition tile/core/numeric/math.hpp:20
Definition tile/core/numeric/math.hpp:28
CK_TILE_HOST_DEVICE constexpr auto operator()(const Right &rhs) const -> decltype(std::declval< const Scale & >() *rhs)
Definition tile/core/numeric/math.hpp:35
CK_TILE_HOST_DEVICE constexpr scales(Scale lhs)
Definition tile/core/numeric/math.hpp:31