Cuda battery library
Loading...
Searching...
No Matches
battery::limits< T > Struct Template Reference

#include <utility.hpp>

Static Public Member Functions

static constexpr T neg_inf ()
 
static constexpr T inf ()
 

Detailed Description

template<class T>
struct battery::limits< T >

limits is a structure to get "infinity points" of primitive types including integers. For floating-point numbers, we use their built-in representation of infinity. For integers, we use the minimal and maximal values of the underlying type to represent infinities. When converting using ru_cast and rd_cast, the infinities will be preserved across types.

Member Function Documentation

◆ neg_inf()

template<class T >
static constexpr T battery::limits< T >::neg_inf ( )
inlinestaticconstexpr

◆ inf()

template<class T >
static constexpr T battery::limits< T >::inf ( )
inlinestaticconstexpr

The documentation for this struct was generated from the following file: