dreamolight / JavaNpy

Load NumPy array files in Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaNpy

Load NumPy array files in Java, inspired by SwiftNpy.

String path = "resources/sample.npy";

Npy npy = new Npy(path);

float[] sampleData = npy.floatElements();
int[] sampleData = npy.int32Elements();
int[] samepleData = npy.uint16Elements();

DataType dt = npy.getDataType();

Suppoted format

npy files.

Bool

boolean

UInt

UInt8, UInt16, UInt32, UInt64   Since there is no unsigned int in Java, they are all treated as signed int

Int

Int8 (short), Int16 (short), Int32 (int), Int64 (long) 

Float, Double

Float, Double

About

Load NumPy array files in Java

License:Other


Languages

Language:Java 100.0%