OpenVDB 14.0.0
Loading...
Searching...
No Matches
Maximum< T > Struct Template Reference

Per-type largest representable value (mirrors std::numeric_limits::max). More...

#include <nanovdb/math/Math.h>

Static Public Member Functions

static constexpr T value () noexcept

Detailed Description

template<typename T>
struct nanovdb::math::Maximum< T >

Per-type largest representable value (mirrors std::numeric_limits::max).

Returned by Maximum<T>::value(). The host fallback (#else branch) forwards to std::numeric_limits so any T with a specialization there works; the CUDA-device branch uses ::cuda::std::numeric_limits; the HIP branch hard-codes a handful of common types because std::numeric_limits is unavailable on the device in some HIP toolchains.

Member Function Documentation

◆ value()

template<typename T>
constexpr T value ( )
inlinestaticnodiscardconstexprnoexcept