Skip to main content
Log in

Mojo function

neg_inf

neg_inf[type: DType]() -> SIMD[type, 1]

Gets a -inf value for the given dtype.

Constraints:

Can only be used for FP dtypes.

Parameters:

  • type (DType): The value dtype.

Returns:

The -inf value of the given dtype.