Function savenpy#
Defined in File fileio.h
Function Documentation#
-
void savenpy(char *filename, uint8_t dtype, void *data, uint64_t shapex, uint64_t shapey)#
Saves a 1 or 2d array in *.npy (v1.0) format.
- Parameters:
filename – [in] String with the filename of to load. Must contain the path.
dtype – [in] Data type id: 0:uint8_t, 2: uint16_t, 3: uint32_t, 4: uint64_t
data – [in] Address of the pointer that holds the data.
shapex – [in] Number of elements in first dimension
shapey – [in] Number of elements in second dimension. If 1d, this should be 1.