save function

Future<void> save(
  1. String path,
  2. List list, {
  3. NpyDType? dtype,
  4. NpyEndian? endian,
  5. bool? fortranOrder,
})

Convenience function to save a List to the given path in NPY format. Alternatively use NdArray.save.

Implementation

Future<void> save(
  String path,
  List list, {
  NpyDType? dtype,
  NpyEndian? endian,
  bool? fortranOrder,
}) async =>
    NdArray.fromList(
      list,
      dtype: dtype,
      endian: endian,
      fortranOrder: fortranOrder,
    ).save(path);