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