def x_off

bendtorch@1.3.0.0 · tensor.bend:649

import bendtorch@1.3.0.0/tensor.bend as Tensor
import Base

649def x_off(+g: Geo, +j: U32) -> U32:
650  match g:
651    case Geo{+n, +m, k, +xb, +xi, xt, yb, yt, yj}:
652      ((U32.div(j, (n * m : U32)) * xb : U32) + (U32.mod(U32.div(j, m), n) * xi : U32) : U32)

Uses (6)

Used by (1)