Mojo function
idx2crd
idx2crd[: ImmutableOrigin, : ImmutableOrigin, : ImmutableOrigin, //, idx_t: IntTuple[$2], shape_t: IntTuple[$1], stride_t: IntTuple[$0]](idx: RuntimeTuple[idx_t, element_bitwidth=element_bitwidth, unsigned=unsigned], shape: RuntimeTuple[shape_t, element_bitwidth=element_bitwidth, unsigned=unsigned], stride: RuntimeTuple[stride_t, element_bitwidth=element_bitwidth, unsigned=unsigned]) -> RuntimeTuple[idx2crd[::Origin[{False}],::Origin[{False}],::Origin[{False}]](idx_t, shape_t, stride_t), element_bitwidth=element_bitwidth, unsigned=unsigned]
idx2crd[: ImmutableOrigin, : ImmutableOrigin, //, idx_t: IntTuple[$1], shape_t: IntTuple[$0]](idx: RuntimeTuple[idx_t, element_bitwidth=element_bitwidth, unsigned=unsigned], shape: RuntimeTuple[shape_t, element_bitwidth=element_bitwidth, unsigned=unsigned]) -> RuntimeTuple[idx2crd[::Origin[{False}],::Origin[{False}],::Origin[{False}]](idx_t, shape_t, prefix_product[::Origin[{False}]](shape_t)), element_bitwidth=element_bitwidth, unsigned=unsigned]
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!