public class NDArrayUtil extends Object
Constructor and Description |
---|
NDArrayUtil() |
Modifier and Type | Method and Description |
---|---|
static INDArray |
center(INDArray arr,
int[] shape)
Center an array
|
static INDArray |
exp(INDArray toExp) |
static INDArray |
expi(INDArray toExp)
Returns an exponential version of this ndarray
|
static INDArray |
padWithZeros(INDArray nd,
int[] targetShape)
Pads an INDArray with zeros
|
static INDArray |
truncate(INDArray nd,
int n,
int dimension)
Truncates an INDArray to the specified shape.
|
public static INDArray expi(INDArray toExp)
toExp
- the INDArray to convertpublic static INDArray center(INDArray arr, int[] shape)
arr
- the arr to centershape
- the shape of the arraypublic static INDArray truncate(INDArray nd, int n, int dimension)
nd
- the INDArray to truncaten
- the number of elements to truncate toCopyright © 2015. All Rights Reserved.