def MatT.full

bend-tensors@0.0.0.2 · bend_tensors.bend:696

import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensors
import Base

696def MatT.full(+r: Nat, +c: Nat, +x: F32) -> MatT(r, c):
697  match r c:
698    case 0n 0n:
699      MatB{Blk.full(x)}
700    case 1n+p 0n:
701      t b = MatT.full(p, 0n, x) MatT.full(p, 0n, x)
702      MatR{t, b}
703    case 0n 1n+q:
704      l r2 = MatT.full(0n, q, x) MatT.full(0n, q, x)
705      MatC{l, r2}
706    case 1n+p 1n+q:
707      a b c2 d = MatT.full(p, q, x) MatT.full(p, q, x) MatT.full(p, q, x) MatT.full(p, q, x)
708      MatQ{a, b, c2, d}

Uses (8)

Used by (3)