public class ComplexNDArrayUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ComplexNDArrayUtil.DimensionOp |
static class |
ComplexNDArrayUtil.MatrixOp |
static class |
ComplexNDArrayUtil.ScalarOp |
Constructor and Description |
---|
ComplexNDArrayUtil() |
Modifier and Type | Method and Description |
---|---|
static IComplexNDArray |
center(IComplexNDArray arr,
int[] shape)
Center an array
|
static IComplexNDArray |
doSliceWise(ComplexNDArrayUtil.MatrixOp op,
IComplexNDArray arr)
Does slice wise ops on matrices and
returns the aggregate results in one matrix
|
static Object |
doSliceWise(ComplexNDArrayUtil.ScalarOp op,
IComplexNDArray arr)
Execute an element wise operation over the whole 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 shapepublic static IComplexNDArray doSliceWise(ComplexNDArrayUtil.MatrixOp op, IComplexNDArray arr)
op
- the operation to performarr
- the array to do operations onpublic static Object doSliceWise(ComplexNDArrayUtil.ScalarOp op, IComplexNDArray arr)
op
- the operation to executearr
- the array to perform operations onCopyright © 2014. All Rights Reserved.