def ph_nw

bendtorch-fast@1.3.0.0 · main.bend:138

import bendtorch-fast@1.3.0.0/main.bend as BendtorchFast
import Base

138# the words of r·c elements, ceil(r·c / 2)
139def ph_nw(+r: Nat, +c: Nat) -> Nat:
140  Nat.div(Nat.add(Nat.mul(r, c), 1n), 2n)

Uses (4)

Used by (1)