Documentation of 'org.nd4j.linalg.jblas.JblasNDArrayFactory' Java class
JblasNDArrayFactory
org.nd4j.linalg.jblas

Class JblasNDArrayFactory

    • Constructor Detail

      • JblasNDArrayFactory

        public JblasNDArrayFactory(java.lang.String dtype,
                                   java.lang.Character order)
    • Method Detail

      • createDouble

        public IComplexDouble createDouble(double real,
                                           double imag)
        Create an instance of a complex double
        Specified by:
        createDouble in interface NDArrayFactory
        Specified by:
        createDouble in class BaseNDArrayFactory
        Parameters:
        real - the real component
        imag - the imaginary component
        Returns:
        a new imaginary double with the specified real and imaginary components
      • create

        public INDArray create(double[][] data)
        Create an ndarray with the given data layout
        Parameters:
        data - the data to create the ndarray with
        Returns:
        the ndarray with the given data layout
      • create

        public INDArray create(DataBuffer data)
        Description copied from interface: NDArrayFactory
        Creates a row vector with the data
        Parameters:
        data - the columns of the ndarray
        Returns:
        the created ndarray
      • createComplex

        public IComplexNDArray createComplex(DataBuffer data)
        Description copied from interface: NDArrayFactory
        Creates an ndarray with the specified data
        Parameters:
        data - the number of columns in the row vector
        Returns:
        ndarray
      • createComplex

        public IComplexNDArray createComplex(DataBuffer data,
                                             int rows,
                                             int columns,
                                             int[] stride,
                                             int offset)
        Description copied from interface: NDArrayFactory
        Creates a complex ndarray with the specified shape
        Parameters:
        data - the data to use with the ndarray
        rows - the rows of the ndarray
        columns - the columns of the ndarray
        stride - the stride for the ndarray
        offset - the offset of the ndarray
        Returns:
        the instance
      • create

        public INDArray create(DataBuffer data,
                               int rows,
                               int columns,
                               int[] stride,
                               int offset)
        Description copied from interface: NDArrayFactory
        Creates an ndarray with the specified shape
        Parameters:
        data - the data to use with the ndarray
        rows - the rows of the ndarray
        columns - the columns of the ndarray
        stride - the stride for the ndarray
        offset - the offset of the ndarray
        Returns:
        the instance
      • createComplex

        public IComplexNDArray createComplex(DataBuffer data,
                                             int[] shape,
                                             int[] stride,
                                             int offset)
        Description copied from interface: NDArrayFactory
        Creates a complex ndarray with the specified shape
        Parameters:
        data - the data to use with the ndarray
        shape - the shape of the ndarray
        stride - the stride for the ndarray
        offset - the offset of the ndarray
        Returns:
        the instance
      • createComplex

        public IComplexNDArray createComplex(IComplexNumber[] data,
                                             int[] shape,
                                             int[] stride,
                                             int offset)
        Description copied from interface: NDArrayFactory
        Creates a complex ndarray with the specified shape
        Parameters:
        data - the data to use with the ndarray
        shape - the shape of the ndarray
        stride - the stride for the ndarray
        offset - the offset of the ndarray
        Returns:
        the instance
      • createComplex

        public IComplexNDArray createComplex(IComplexNumber[] data,
                                             int[] shape,
                                             int[] stride,
                                             int offset,
                                             char ordering)
        Description copied from interface: NDArrayFactory
        Creates a complex ndarray with the specified shape
        Parameters:
        data - the data to use with the ndarray
        shape - the shape of the ndarray
        stride - the stride for the ndarray
        offset - the offset of the ndarray
        Returns:
        the instance
      • createComplex

        public IComplexNDArray createComplex(IComplexNumber[] data,
                                             int[] shape,
                                             int[] stride,
                                             char ordering)
        Description copied from interface: NDArrayFactory
        Creates a complex ndarray with the specified shape
        Parameters:
        data - the data to use with the ndarray
        shape - the shape of the ndarray
        stride - the stride for the ndarray
        Returns:
        the instance
      • createComplex

        public IComplexNDArray createComplex(IComplexNumber[] data,
                                             int[] shape,
                                             int offset,
                                             char ordering)
        Description copied from interface: NDArrayFactory
        Creates a complex ndarray with the specified shape
        Parameters:
        data - the data to use with the ndarray
        shape - the shape of the ndarray
        offset - the stride for the ndarray
        Returns:
        the instance
      • createComplex

        public IComplexNDArray createComplex(IComplexNumber[] data,
                                             int[] shape,
                                             char ordering)
        Description copied from interface: NDArrayFactory
        Creates a complex ndarray with the specified shape
        Parameters:
        data - the data to use with the ndarray
        shape - the shape of the ndarray
        Returns:
        the instance
      • createComplex

        public IComplexNDArray createComplex(float[] data,
                                             int[] shape,
                                             int[] stride,
                                             int offset)
        Creates a complex ndarray with the specified shape
        Specified by:
        createComplex in interface NDArrayFactory
        Specified by:
        createComplex in class BaseNDArrayFactory
        Parameters:
        data - the data to use with the ndarray
        shape - the shape of the ndarray
        stride - the stride for the ndarray
        offset - the offset of the ndarray
        Returns:
        the instance
      • create

        public INDArray create(int[] shape,
                               char ordering)
      • create

        public INDArray create(DataBuffer data,
                               int[] newShape,
                               int[] newStride,
                               int offset,
                               char ordering)
      • createComplex

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

        public IComplexNDArray createComplex(float[] data,
                                             java.lang.Character order)
      • create

        public INDArray create(float[] data,
                               int[] shape,
                               int offset,
                               java.lang.Character order)
      • create

        public INDArray create(float[] data,
                               int rows,
                               int columns,
                               int[] stride,
                               int offset,
                               char ordering)
      • create

        public INDArray create(double[] data,
                               int[] shape,
                               char ordering)
      • create

        public INDArray create(java.util.List<INDArray> list,
                               int[] shape,
                               char ordering)
      • create

        public INDArray create(double[] data,
                               int[] shape,
                               int offset)
      • create

        public INDArray create(double[] data,
                               int[] shape,
                               int[] stride,
                               int offset,
                               char ordering)
      • create

        public INDArray create(float[] data,
                               int[] shape,
                               int[] stride,
                               int offset)
        Creates an ndarray with the specified shape
        Specified by:
        create in interface NDArrayFactory
        Specified by:
        create in class BaseNDArrayFactory
        Parameters:
        data -
        shape - the shape of the ndarray
        stride - the stride for the ndarray
        offset - the offset of the ndarray
        Returns:
        the instance
      • createComplex

        public IComplexNDArray createComplex(double[] data,
                                             int[] shape,
                                             int[] stride,
                                             int offset)
        Creates a complex ndarray with the specified shape
        Specified by:
        createComplex in interface NDArrayFactory
        Specified by:
        createComplex in class BaseNDArrayFactory
        Parameters:
        data -
        shape - the shape of the ndarray
        stride - the stride for the ndarray
        offset - the offset of the ndarray
        Returns:
        the instance
      • create

        public INDArray create(double[] data,
                               int[] shape,
                               int[] stride,
                               int offset)
        Creates an ndarray with the specified shape
        Specified by:
        create in interface NDArrayFactory
        Specified by:
        create in class BaseNDArrayFactory
        Parameters:
        data -
        shape - the shape of the ndarray
        stride - the stride for the ndarray
        offset - the offset of the ndarray
        Returns:
        the instance
      • create

        public INDArray create(DataBuffer data,
                               int[] shape)
        Description copied from interface: NDArrayFactory
        Create an ndrray with the specified shape
        Parameters:
        data - the data to use with tne ndarray
        shape - the shape of the ndarray
        Returns:
        the created ndarray
      • createComplex

        public IComplexNDArray createComplex(DataBuffer data,
                                             int[] shape)
        Description copied from interface: NDArrayFactory
        Create an ndrray with the specified shape
        Parameters:
        data - the data to use with tne ndarray
        shape - the shape of the ndarray
        Returns:
        the created ndarray
      • createComplex

        public IComplexNDArray createComplex(DataBuffer data,
                                             int[] shape,
                                             int[] stride)
        Description copied from interface: NDArrayFactory
        Create an ndrray with the specified shape
        Parameters:
        data - the data to use with tne ndarray
        shape - the shape of the ndarray
        stride - the stride for the ndarray
        Returns:
        the created ndarray
      • create

        public INDArray create(DataBuffer data,
                               int[] shape,
                               int[] stride,
                               int offset)
        Description copied from interface: NDArrayFactory
        Creates an ndarray with the specified shape
        shape - the shape of the ndarray
        stride - the stride for the ndarray
        offset - the offset of the ndarray
        Returns:
        the instance
      • createComplex

        public IComplexNDArray createComplex(double[] data,
                                             int[] shape,
                                             int[] stride,
                                             int offset,
                                             char ordering)
        Create a complex ndarray with the given data
        Specified by:
        createComplex in interface NDArrayFactory
        Specified by:
        createComplex in class BaseNDArrayFactory
        Parameters:
        data - the data to use with tne ndarray
        shape - the shape of the ndarray
        stride - the stride for the ndarray
        offset - the offset of the ndarray
        ordering - the ordering for the ndarray
        Returns:
        the created complex ndarray
      • createComplex

        public IComplexNDArray createComplex(float[] data,
                                             int[] shape,
                                             int[] stride,
                                             int offset,
                                             char ordering)
        Create a complex ndarray with the given data
        Parameters:
        data - the data to use with tne ndarray
        shape - the shape of the ndarray
        stride - the stride for the ndarray
        offset - the offset of the ndarray
        ordering - the ordering for the ndarray
        Returns:
        the created complex ndarray
      • create

        public INDArray create(float[][] floats)
      • create

        public INDArray create(float[] data,
                               int[] shape,
                               int[] stride,
                               int offset,
                               char ordering)
      • createComplex

        public IComplexNDArray createComplex(float[] data,
                                             int[] shape,
                                             int offset,
                                             char ordering)
        Parameters:
        data -
        shape -
        offset -
        ordering -
        Returns:
      • createComplex

        public IComplexNDArray createComplex(float[] data,
                                             int[] shape,
                                             int offset)
        Parameters:
        data -
        shape -
        offset -
        Returns:

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.