def Mat.from_list

bend-tensors@0.0.0.2 · bend_tensors.bend:1434

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

1434# a matrix from rows * cols floats in row-major order
1435def Mat.from_list(+rows: Nat, +cols: Nat, xs: List<&2, F32>) -> Mat<rows, cols>:
1436  MatS{MatT.mask(VecT.depth(rows), VecT.depth(cols), MatT.from_rows(VecT.depth(rows), VecT.depth(cols), MatT.chunks(rows, cols, xs)), 0n, 0n, rows, cols)}

Uses (8)

Used by (1)