MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
identity.hpp File Reference
#include <mtl/math/operations.hpp>
#include <type_traits>
#include <limits>

Classes

struct  mtl::math::identity_t< add< T >, T >
struct  mtl::math::identity_t< mult< T >, T >
struct  mtl::math::identity_t< max_op< T >, T >
struct  mtl::math::identity_t< min_op< T >, T >

Namespaces

namespace  mtl
namespace  mtl::math

Functions

template<typename T>
constexpr T mtl::math::zero ()
 Returns the additive identity (zero) for type T.
template<typename T>
constexpr T mtl::math::one ()
 Returns the multiplicative identity (one) for type T.