Package Exports
- numpy-parser
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (numpy-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
numpy-parser
A JS parser for (binary) .npy files, supporting all TypedArray subclasses:
- float32 & float64
- int8, int16, int32
- uint8, uint16, uint32
Acknowledgements
This implementation was inspired by this gist by nvictus.
Future Work
.npy files can encode floats as 16 bit long, too. While JS runtimes may not support this as a native data type, we could still consider supporting it and parsing into 32 bit floats to at least get the bandwidth savings in transit.