Skip to main content

Mojo function

normalize

normalize(value: BFloat16) -> UInt16

Returns:

UInt16

normalize(value: Int32) -> UInt32

Returns:

UInt32

normalize(value: UInt16) -> UInt16

Returns:

UInt16

normalize(value: Float32) -> UInt32

Returns:

UInt32

normalize(value: Scalar[dtype]) -> Scalar[_uint_type_of_width[bit_width_of[dtype]()]()]

Normalize the value to the appropriate unsigned integer type. This is needed for radix sort to work correctly.

Returns:

Scalar

Was this page helpful?