org.nd4j.linalg.util
Class ComplexNDArrayUtil
- java.lang.Object
-
- org.nd4j.linalg.util.ComplexNDArrayUtil
-
public class ComplexNDArrayUtil extends java.lang.ObjectIComplexNDArray operations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classComplexNDArrayUtil.DimensionOpstatic classComplexNDArrayUtil.MatrixOpstatic classComplexNDArrayUtil.ScalarOp
-
Constructor Summary
Constructors Constructor and Description ComplexNDArrayUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static IComplexNDArraycenter(IComplexNDArray arr, int[] shape)Center an arraystatic IComplexNDArrayexp(IComplexNDArray toExp)static IComplexNDArrayexpi(IComplexNDArray toExp)Returns the exponential of a complex ndarraystatic IComplexNDArraypadWithZeros(IComplexNDArray nd, int[] targetShape)Pads an ndarray with zerosstatic IComplexNDArraytruncate(IComplexNDArray nd, int n, int dimension)Truncates an ndarray to the specified shape.
-
-
-
Method Detail
-
exp
public static IComplexNDArray exp(IComplexNDArray toExp)
-
expi
public static IComplexNDArray expi(IComplexNDArray toExp)
Returns the exponential of a complex ndarray- Parameters:
toExp- the ndarray to convert- Returns:
- the exponential of the specified ndarray
-
center
public static IComplexNDArray center(IComplexNDArray arr, int[] shape)
Center an array- Parameters:
arr- the arr to centershape- the shape of the array- Returns:
- the center portion of the array based on the specified shape
-
truncate
public static IComplexNDArray truncate(IComplexNDArray nd, int n, int dimension)
Truncates an ndarray to the specified shape. If the shape is the same or greater, it just returns the original array- Parameters:
nd- the ndarray to truncaten- the number of elements to truncate to- Returns:
- the truncated ndarray
-
padWithZeros
public static IComplexNDArray padWithZeros(IComplexNDArray nd, int[] targetShape)
Pads an ndarray with zeros- Parameters:
nd- the ndarray to padtargetShape- the the new shape- Returns:
- the padded ndarray
-
-
DMelt 3.0 © DataMelt by jWork.ORG