Mojo function
max_or_inf
max_or_inf[type: DType]() -> SIMD[$0, 1]
Returns the maximum (potentially infinite) value of type.
Parameters:
- type (
DType
): The value dtype.
Returns:
The maximum representable value of the type. Can include infinity for floating-point types.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!