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

Class NDArray

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


    public class NDArray
    extends BaseNDArray
    NDArray: (think numpy) A few things of note. An NDArray can have any number of dimensions. An NDArray is accessed via strides. Strides are how to index over a contiguous block of data. This block of data has 2 orders(as of right now): fortran and c
    See Also:
    Serialized Form
    • Constructor Detail

      • NDArray

        public NDArray()
      • NDArray

        public NDArray(DataBuffer buffer,
                       int[] shape,
                       int[] stride,
                       int offset,
                       char ordering)
      • NDArray

        public NDArray(double[][] data)
      • NDArray

        public NDArray(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 -
      • NDArray

        public NDArray(float[] data,
                       int[] shape,
                       int offset,
                       char ordering)
        Parameters:
        data - the data to use
        shape - the shape of the ndarray
        offset - the desired offset
        ordering - the ordering of the ndarray
      • NDArray

        public NDArray(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 of the ndarray
      • NDArray

        public NDArray(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 - the ordering of the ndarray
      • NDArray

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

        public NDArray(int[] shape)
      • NDArray

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

        public NDArray(java.util.List<INDArray> slices,
                       int[] shape,
                       char ordering)
        Create an ndarray from the specified slices. This will go through and merge all of the data from each slice in to one ndarray which will then take the specified shape
        Parameters:
        slices - the slices to merge
        shape - the shape of the ndarray
        ordering -
      • NDArray

        public NDArray(java.util.List<INDArray> slices,
                       int[] shape,
                       int[] stride,
                       char ordering)
        Create an ndarray from the specified slices. This will go through and merge all of the data from each slice in to one ndarray which will then take the specified shape
        Parameters:
        slices - the slices to merge
        shape - the shape of the ndarray
        stride -
        ordering -
      • NDArray

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

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

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

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

        public NDArray(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
      • NDArray

        public NDArray(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
      • NDArray

        public NDArray(int[] shape,
                       int offset)
      • NDArray

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

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

        public NDArray(java.util.List<INDArray> slices,
                       int[] shape)
        Create an ndarray from the specified slices. This will go through and merge all of the data from each slice in to one ndarray which will then take the specified shape
        Parameters:
        slices - the slices to merge
        shape - the shape of the ndarray
      • NDArray

        public NDArray(java.util.List<INDArray> slices,
                       int[] shape,
                       int[] stride)
        Create an ndarray from the specified slices. This will go through and merge all of the data from each slice in to one ndarray which will then take the specified shape
        Parameters:
        slices - the slices to merge
        shape - the shape of the ndarray
        stride -
      • NDArray

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

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

        public NDArray(org.jblas.DoubleMatrix doubleMatrix)
      • NDArray

        public NDArray(double[] data,
                       int[] shape,
                       int[] stride,
                       int offset)
      • NDArray

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

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

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

        public NDArray(DoubleBuffer buffer,
                       int[] shape,
                       int offset)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.