Skip to main content
Log in

Mojo function

arange

arange[dtype: DType, layout: Layout](tensor: LayoutTensor[dtype, layout, origin=origin, address_space=address_space, element_layout=element_layout, layout_bitwidth=layout_bitwidth, masked=masked, alignment=alignment], start: SIMD[dtype, 1] = __init__[__mlir_type.!kgen.int_literal](0), step: SIMD[dtype, 1] = __init__[__mlir_type.!kgen.int_literal](1), end: SIMD[dtype, 1] = max_finite[::DType]())