def npy_header

stelliferous@0.0.2.0 · tensor_file.bend:412

import stelliferous@0.0.2.0/tensor_file.bend as TensorFile
import Base

412def npy_header(shape: List<&2,U32>) -> List<&2,U32>:
413  +text = codes("{'descr': '<f4', 'fortran_order': False, 'shape': " ++ tuple(shape) ++ ", }")
414  framed(text,U32.from_nat(List.length(&2,U32,text)))

Uses (8)

Used by (1)