ncalab.export.header ==================== .. py:module:: ncalab.export.header Functions --------- .. autoapisummary:: ncalab.export.header.tensor_to_C ncalab.export.header.export_header Module Contents --------------- .. py:function:: tensor_to_C(tensor: torch.Tensor, name: str, number_type: str = 'float') .. py:function:: export_header(nca: ncalab.models.basicNCA.BasicNCAModel, outfile: str | pathlib.Path | pathlib.PosixPath, number_type: str = 'float', imports: list | None = None) Export parameters of an NCA model to a C header. :param nca: _description_ :type nca: BasicNCAModel :param outfile: _description_ :type outfile: str | Path | PosixPath :param number_type: _description_, defaults to "float" :type number_type: str, optional :param imports: _description_, defaults to None :type imports: list | None, optional