public class NDArrayUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<?> |
getContent(NDArray array)
Gets the payload of a one-dimensional array.
|
static List<?> |
getContent(NDArray array,
String key)
Gets the payload of the specified dimension of a multi-dimensional array.
|
static int[] |
getShape(NDArray array) |
static List<Object> |
parseArray(InputStream is,
String descr,
int length) |
static Object |
parseData(InputStream is,
Object descr,
Object[] shape) |
static List<Object[]> |
parseMultiArray(InputStream is,
List<String> descrs,
int length) |
static NDArray |
parseNpy(InputStream is)
http://docs.scipy.org/doc/numpy-dev/neps/npy-format.html
|
public static int[] getShape(NDArray array)
public static List<?> getContent(NDArray array)
public static List<?> getContent(NDArray array, String key)
key - The dimension.public static NDArray parseNpy(InputStream is) throws IOException
IOExceptionpublic static Object parseData(InputStream is, Object descr, Object[] shape) throws IOException
IOExceptionpublic static List<Object> parseArray(InputStream is, String descr, int length) throws IOException
IOExceptionpublic static List<Object[]> parseMultiArray(InputStream is, List<String> descrs, int length) throws IOException
IOExceptionCopyright © 2018. All rights reserved.