Documentation of 'org.nd4j.linalg.jblas.complex.ComplexNDArray' Java class
ComplexNDArray
org.nd4j.linalg.jblas.complex

Class ComplexNDArray

  • All Implemented Interfaces:
    java.io.Serializable, IComplexNDArray, INDArray


    public class ComplexNDArray
    extends BaseComplexNDArray
    ComplexNDArray for complex numbers. Note that the indexing scheme for a complex ndarray is 2 * length not length. The reason for this is the fact that imaginary components have to be stored alongside realComponent components.
    See Also:
    Serialized Form
    • Constructor Detail

      • ComplexNDArray

        public ComplexNDArray(float[] data,
                              int[] shape,
                              char ordering)
        Create this ndarray with the given data and shape and 0 offset
        Parameters:
        data - the data to use
        shape - the shape of the ndarray
        ordering -
      • ComplexNDArray

        public ComplexNDArray(int[] shape,
                              int offset,
                              char ordering)
      • ComplexNDArray

        public ComplexNDArray(int[] shape)
      • ComplexNDArray

        public ComplexNDArray(float[] data,
                              int[] shape,
                              int[] stride,
                              char ordering)
      • ComplexNDArray

        public ComplexNDArray(int[] shape,
                              char ordering)
      • ComplexNDArray

        public ComplexNDArray(INDArray m,
                              int[] stride,
                              char ordering)
        Initialize the given ndarray as the real component
        Parameters:
        m - the real component
        stride - the stride of the ndarray
        ordering - the ordering for the ndarray
      • ComplexNDArray

        public ComplexNDArray(INDArray m,
                              char ordering)
        Construct a complex matrix from a realComponent matrix.
        Parameters:
        m -
        ordering -
      • ComplexNDArray

        public ComplexNDArray(INDArray m)
        Construct a complex matrix from a realComponent matrix.
        Parameters:
        m -
      • ComplexNDArray

        public ComplexNDArray(INDArray m,
                              int[] stride)
        Create with the specified ndarray as the real component and the given stride
        Parameters:
        m - the ndarray to use as the stride
        stride - the stride of the ndarray
      • ComplexNDArray

        public ComplexNDArray(java.util.List<IComplexNDArray> slices,
                              int[] shape,
                              int[] stride)
        Create an ndarray from the specified slices and the given shape
        Parameters:
        slices - the slices of the ndarray
        shape - the final shape of the ndarray
        stride - the stride of the ndarray
      • ComplexNDArray

        public ComplexNDArray(java.util.List<IComplexNDArray> slices,
                              int[] shape,
                              int[] stride,
                              char ordering)
        Create an ndarray from the specified slices and the given shape
        Parameters:
        slices - the slices of the ndarray
        shape - the final shape of the ndarray
        stride - the stride of the ndarray
        ordering - the ordering for the ndarray
      • ComplexNDArray

        public ComplexNDArray(java.util.List<IComplexNDArray> slices,
                              int[] shape,
                              char ordering)
        Create an ndarray from the specified slices and the given shape
        Parameters:
        slices - the slices of the ndarray
        shape - the final shape of the ndarray
        ordering - the ordering of the ndarray
      • ComplexNDArray

        public ComplexNDArray(java.util.List<IComplexNDArray> slices,
                              int[] shape)
        Create an ndarray from the specified slices and the given shape
        Parameters:
        slices - the slices of the ndarray
        shape - the final shape of the ndarray
      • ComplexNDArray

        public ComplexNDArray(IComplexNumber[] newData,
                              int[] shape)
        Create a complex ndarray with the given complex doubles. Note that this maybe an easier setup than the new float[]
        Parameters:
        newData - the new data for this array
        shape - the shape of the ndarray
      • ComplexNDArray

        public ComplexNDArray(IComplexNumber[] newData,
                              int[] shape,
                              int[] stride)
        Create a complex ndarray with the given complex doubles. Note that this maybe an easier setup than the new float[]
        Parameters:
        newData - the new data for this array
        shape - the shape of the ndarray
        stride -
      • ComplexNDArray

        public ComplexNDArray(IComplexNumber[] newData,
                              int[] shape,
                              char ordering)
        Create a complex ndarray with the given complex doubles. Note that this maybe an easier setup than the new float[]
        Parameters:
        newData - the new data for this array
        shape - the shape of the ndarray
        ordering - the ordering for the ndarray
      • ComplexNDArray

        public ComplexNDArray(float[] data,
                              int[] shape,
                              int[] stride)
        Initialize with the given data,shape and stride
        Parameters:
        data - the data to use
        shape - the shape of the ndarray
        stride - the stride of the ndarray
      • ComplexNDArray

        public ComplexNDArray(float[] data,
                              int[] shape,
                              int[] stride,
                              int offset,
                              char ordering)
        THe ordering of the ndarray
        Parameters:
        data - the data to use
        shape - the final shape of the ndarray
        stride - the stride of the ndarray
        offset - the offset
        ordering - the ordering
      • ComplexNDArray

        public ComplexNDArray(float[] data,
                              int[] shape,
                              int[] stride,
                              int offset)
      • ComplexNDArray

        public ComplexNDArray(float[] data,
                              int[] shape)
      • ComplexNDArray

        public ComplexNDArray(float[] data,
                              int[] shape,
                              int offset,
                              char ordering)
      • ComplexNDArray

        public ComplexNDArray(float[] data,
                              int[] shape,
                              int offset)
      • ComplexNDArray

        public ComplexNDArray(int[] shape,
                              int[] stride,
                              int offset)
        Construct an ndarray of the specified shape with an empty data array
        Parameters:
        shape - the shape of the ndarray
        stride - the stride of the ndarray
        offset - the desired offset
      • ComplexNDArray

        public ComplexNDArray(int[] shape,
                              int[] stride,
                              int offset,
                              char ordering)
        Construct an ndarray of the specified shape with an empty data array
        Parameters:
        shape - the shape of the ndarray
        stride - the stride of the ndarray
        offset - the desired offset
        ordering - the ordering for the ndarray
      • ComplexNDArray

        public ComplexNDArray(int[] shape,
                              int[] stride,
                              char ordering)
        Create the ndarray with the specified shape and stride and an offset of 0
        Parameters:
        shape - the shape of the ndarray
        stride - the stride of the ndarray
        ordering -
      • ComplexNDArray

        public ComplexNDArray(int[] shape,
                              int[] stride)
        Create the ndarray with the specified shape and stride and an offset of 0
        Parameters:
        shape - the shape of the ndarray
        stride - the stride of the ndarray
      • ComplexNDArray

        public ComplexNDArray(int[] shape,
                              int offset)
        Parameters:
        shape -
        offset -
      • ComplexNDArray

        public ComplexNDArray(int newRows,
                              int newColumns)
        Creates a new n times m ComplexDoubleMatrix.
        Parameters:
        newRows - the number of rows (n) of the new matrix.
        newColumns - the number of columns (m) of the new matrix.
      • ComplexNDArray

        public ComplexNDArray(int newRows,
                              int newColumns,
                              char ordering)
        Creates a new n times m ComplexDoubleMatrix.
        Parameters:
        newRows - the number of rows (n) of the new matrix.
        newColumns - the number of columns (m) of the new matrix.
        ordering - the ordering of the ndarray
      • ComplexNDArray

        public ComplexNDArray(float[] doubles)
      • ComplexNDArray

        public ComplexNDArray(float[][] floats)
      • ComplexNDArray

        public ComplexNDArray(DataBuffer data)
      • ComplexNDArray

        public ComplexNDArray(DataBuffer data,
                              int[] shape,
                              int[] stride,
                              int offset)
      • ComplexNDArray

        public ComplexNDArray(IComplexNumber[] data,
                              int[] shape,
                              int[] stride,
                              int offset,
                              char ordering)
      • ComplexNDArray

        public ComplexNDArray(DataBuffer data,
                              int[] newDims,
                              int[] newStrides,
                              int offset,
                              char ordering)
      • ComplexNDArray

        public ComplexNDArray(DataBuffer data,
                              int[] shape)
      • ComplexNDArray

        public ComplexNDArray(DataBuffer data,
                              int[] shape,
                              int[] stride)
      • ComplexNDArray

        public ComplexNDArray(float[] data,
                              java.lang.Character order)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.