package npy

  1. Overview
  2. Docs
Numpy npy file format reading/writing.

Install

Dune Dependency

Authors

Maintainers

Sources

0.0.6.tar.gz
sha256=0ff64ac13a913edcb4c00e889c3c8ad28df689d3a842ec081eebafbe6cc3ea30
md5=1176541495878867a78a7e5efc3ac9bc

Description

Provide simple read/write function using the numpy npy/npz file formats. These can be used to save a bigarray to disk and then load it from python using numpy.

Published: 18 Mar 2017

README

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.

Dependencies (4)

  1. jbuilder
  2. ocamlfind build
  3. camlzip
  4. ocaml >= "4.03.0" & < "4.06.0"

Dev Dependencies

None

Used by (2)

  1. owl >= "0.8.0"
  2. torch < "v0.16.0"

Conflicts

None

OCaml

Innovation. Community. Security.