3#ifndef pRC_CORE_VALUE_IDENTITY_H
4#define pRC_CORE_VALUE_IDENTITY_H
35 template<
class X, If<IsConstructible<T, X>> = 0>
67 template<
class X, If<IsConstructible<Float<16>, X>> = 0>
static constexpr auto FromRepresentation(Representation const rep)
Definition bfloat16.hpp:34
Top-level class storing a floating point number.
Definition float.hpp:35
Definition cholesky.hpp:18
std::enable_if_t< B{}, int > If
Definition type_traits.hpp:68
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13
Any< IsFloat< T >, IsInteger< T > > IsValue
Definition type_traits.hpp:72
constexpr Float< 16 > operator()()
Returns the identity, i.e. 1.
Definition identity.hpp:54
constexpr Float< 16 > operator()(X &&value)
Returns a scaled identity, for value types the scaling factor is returned directly.
Definition identity.hpp:68
constexpr T operator()(X &&value)
Returns a scaled identity, for value types the scaling factor is returned directly.
Definition identity.hpp:36
constexpr T operator()()
Returns the identity, i.e. 1.
Definition identity.hpp:22
Definition type_traits.hpp:262