Class DataTensorBlock

    • Constructor Detail

      • DataTensorBlock

        public DataTensorBlock()
      • DataTensorBlock

        public DataTensorBlock​(int ncols,
                               Types.ValueType vt)
      • DataTensorBlock

        public DataTensorBlock​(Types.ValueType[] schema,
                               int[] dims)
      • DataTensorBlock

        public DataTensorBlock​(Types.ValueType vt,
                               int[] dims)
      • DataTensorBlock

        public DataTensorBlock​(double val)
    • Method Detail

      • reset

        public void reset()
      • reset

        public void reset​(int[] dims)
      • isAllocated

        public boolean isAllocated()
      • isEmpty

        public boolean isEmpty​(boolean safe)
      • getNonZeros

        public long getNonZeros()
      • getNumRows

        public int getNumRows()
      • getNumColumns

        public int getNumColumns()
      • getNumDims

        public int getNumDims()
      • getDim

        public int getDim​(int i)
      • getDims

        public int[] getDims()
      • get

        public Object get​(int[] ix)
      • get

        public double get​(int r,
                          int c)
      • set

        public void set​(Object v)
      • set

        public void set​(int[] ix,
                        Object v)
      • set

        public void set​(int r,
                        int c,
                        double v)
      • copy

        public void copy​(int[] lower,
                         int[] upper,
                         DataTensorBlock src)
        Copy a part of another DataTensorBlock
        lower - lower index of elements to copy (inclusive)
        upper - upper index of elements to copy (exclusive)
        src - source DataTensorBlock