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