Documentation of 'org.nd4j.linalg.util.ComplexNDArrayUtil' Java class
ComplexNDArrayUtil
org.nd4j.linalg.util

Class ComplexNDArrayUtil



  • public class ComplexNDArrayUtil
    extends java.lang.Object
    IComplexNDArray operations
    • Constructor Detail

      • ComplexNDArrayUtil

        public ComplexNDArrayUtil()
    • Method Detail

      • 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 center
        shape - 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 truncate
        n - 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 pad
        targetShape - the the new shape
        Returns:
        the padded ndarray

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.