IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

reduce_min_and_max

def reduce_min_and_max[dtype: DType, InputFn: def[width: Int, alignment: Int, rank: Int](IndexList[rank]) -> SIMD[dtype, width] & RegisterPassable & ImplicitlyCopyable, OutputMinFn: def[width: SIMDLength, rank: Int](IndexList[rank], SIMD[dtype, width]) -> None & RegisterPassable & ImplicitlyCopyable, OutputMaxFn: def[width: SIMDLength, rank: Int](IndexList[rank], SIMD[dtype, width]) -> None & RegisterPassable & ImplicitlyCopyable, /, target: StringSpan[ImmStaticOrigin], *, reduce_dim: Int](input_fn: InputFn, output_min_fn: OutputMinFn, output_max_fn: OutputMaxFn, input_shape: Coord, context: Optional[DeviceContext] = None) where (eq InputFn.dtype, dtype) where (eq OutputMinFn.dtype, dtype) where (eq OutputMaxFn.dtype, dtype)

Computes min and max in one axis walk (MinMax monoid), two outputs.