LaurentMazare / npy-ocaml

Numpy file format support for ocaml.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npy-ocaml

This contains a simple implementation of version 1.0 of the npy format spec. An opam package is available and can be installed via:

opam install npy

The main functions are:

  • Writing ocaml bigarrays to npy files, these files can then be loaded from python using numpy.load.
  • Reading ocaml bigarrays from npy files, the resulting bigarrays are mmapped to the file.
  • Reading and writing npz files that could contain multiple arrays.

About

Numpy file format support for ocaml.

License:Apache License 2.0


Languages

Language:OCaml 99.5%Language:Makefile 0.5%