def Mat.from_list
import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensorsimport 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)}