def t8_par2

bend-ml-tensor-array@0.1.19.0 · main.bend:1129

import bend-ml-tensor-array@0.1.19.0/main.bend as BendMlTensorArray
import Base

1129# 2^d blocks along the larger of n (rows of C, pieces of A) and m (columns of C, pieces of B)
1130def t8_par2(+ac: Bool, byrows: Bool, d: Nat, +n: Nat, +m: Nat, +k: Nat, +tk: Nat, +tku: U32, +rot: Nat, +arow: U32, +sa: U32, +sb: U32, +bcol: U32, a: Array<F32>, b: Array<F32>, c: Array<F32>) -> G:
1131  match byrows:
1132    case True{}:
1133      t8_pr2(ac, n, m, tk, tku, rot, c, pk_tree(d, n, 0, tk, tku, U32.from_nat(k), arow, sa, a), pk_pack(m, tk, k, bcol, sb, b))
1134    case False{}:
1135      t8_pc2(ac, n, m, tk, tku, rot, c, pk_pack(n, tk, k, arow, sa, a), pk_tree(d, m, 0, tk, tku, U32.from_nat(k), bcol, sb, b))

Uses (11)

Used by (1)