unary_element_function.hpp Source File#
unary_element_function.hpp
Go to the documentation of this file.
Definition tile/core/algorithm/cluster_descriptor.hpp:13
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__ composes(Ts &&...) -> composes< remove_cvref_t< Ts >... >
FIXME: create macro to replace 'host device' and nothing more.
CK_TILE_HOST_DEVICE constexpr Y type_convert(X x)
Definition tile/core/numeric/type_convert.hpp:29
STL namespace.
CK_TILE_HOST_DEVICE constexpr composes(Arg &&arg)
Definition unary_element_function.hpp:35
CK_TILE_HOST_DEVICE constexpr auto operator()(Arg &&arg) const
Definition unary_element_function.hpp:41
Definition unary_element_function.hpp:12
CK_TILE_HOST_DEVICE constexpr auto operator()(Arg &&arg) const
Definition unary_element_function.hpp:20
CK_TILE_HOST_DEVICE constexpr composes(FirstArg &&firstArg, RestArgs &&... restArgs)
Definition unary_element_function.hpp:14
static CK_TILE_HOST_DEVICE constexpr T lowest()
Definition tile/core/numeric/numeric.hpp:23
static CK_TILE_HOST_DEVICE constexpr T max()
Definition tile/core/numeric/numeric.hpp:26
Definition unary_element_function.hpp:56
CK_TILE_HOST_DEVICE constexpr auto operator()(const AccType &a_) const -> std::enable_if_t< std::is_arithmetic_v< AccType >, AccType >
Definition unary_element_function.hpp:61