Skip to main content

Mojo function

matrix_band_part

matrix_band_part[dtype: DType, int_type: DType, cond_type: DType, rank: Int, input_0_fn: def[width: Int, rank: Int](IndexList[rank]) capturing -> SIMD[dtype, width], simd_width: Int, single_thread_blocking_override: Bool, target: StringSlice[StaticConstantOrigin] = StringSlice("cpu")](input_shape: IndexList[rank], num_lower: TileTensor[int_type, num_lower.LayoutType, num_lower.origin, address_space=num_lower.address_space, linear_idx_type=num_lower.linear_idx_type, element_size=num_lower.element_size], num_upper: TileTensor[int_type, num_upper.LayoutType, num_upper.origin, address_space=num_upper.address_space, linear_idx_type=num_upper.linear_idx_type, element_size=num_upper.element_size], exclude: TileTensor[cond_type, exclude.LayoutType, exclude.origin, address_space=exclude.address_space, linear_idx_type=exclude.linear_idx_type, element_size=exclude.element_size], output: TileTensor[dtype, output.LayoutType, output.origin, address_space=output.address_space, linear_idx_type=output.linear_idx_type, element_size=output.element_size], ctx: DeviceContextPtr)

Was this page helpful?