Skip to main content
Log in

Mojo function

max_or_inf

max_or_inf[type: DType]() -> SIMD[type, 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.