write_numpy

Function write_numpy 

Source
pub fn write_numpy<T, P: AsRef<Path>>(
    path: P,
    data: Vec<T>,
    shape: Vec<u64>,
) -> Result<(), PineappleError>
Expand description

Write a numpy file from a vector of specified shape

ยงArguments

  • path - Path to output numpy file
  • data - Vector of numeric type
  • shape - Shape of the vector (shape product must equal length of data)