package pyml
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml bindings for Python
Install
dune-project
Dependency
Authors
Maintainers
Sources
20210924.tar.gz
sha512=c1e979751ef933635ae6d7f69e1638a3accfd082b0b3a364c4305eb268a67f73af26e321beef4cf3b99ab2fe35ab642c03b005ad620b0268e22b4a09b6f7c1c0
doc/pyml/Numpy/index.html
Module NumpySource
OCaml Interface for Numpy.
Arrays are passed in place (without copy): Python and OCaml programs can change the contents of the array and the changes are visible in the other language.
The following table gives the correspondence between bigarray kinds and Numpy element types.
float32/NPY_FLOATfloat64/NPY_DOUBLEint8_signed/NPY_BYTEint8_unsigned/NPY_UBYTEint16_signed/NPY_SHORTint16_unsigned/NPY_USHORTint32/NPY_INTint64/NPY_LONGLONGnativeint/NPY_LONGcomplex32/NPY_CFLOATcomplex64/NPY_CDOUBLEchar/NPY_CHAR
Other kinds/element types are not supported. In particular, OCaml integer kind, int, has no equivalent type in Numpy.
of_bigarray a returns a Numpy array that shares the same contents than the OCaml array a.
Source
val to_bigarray :
('a, 'b) Bigarray.kind ->
'c Bigarray.layout ->
Py.Object.t ->
('a, 'b, 'c) Bigarray.Genarray.tto_bigarray kind layout a returns a bigarray that shares the same contents than the Numpy array a.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>