Class DoubleMatrix<R,​C>

    • Constructor Detail

      • DoubleMatrix

        public DoubleMatrix()
    • Method Detail

      • asArray

        public abstract double[][] asArray()
      • copy

        public abstract DoubleMatrix<R,​C> copy()
        Create a deep copy of this
        Returns:
        a deep copy of this
      • get

        public abstract double get​(int j,
                                   int i)
        Parameters:
        j -
        i -
        Returns:
      • getColRange

        public abstract DoubleMatrix<R,​C> getColRange​(int startCol,
                                                            int endCol)
        Parameters:
        startCol - inclusive, numbered from zero
        endCol - inclusive, numbered from zero
        Returns:
        new matrix with just the requested range of columns from this
      • getColumn

        public abstract double[] getColumn​(int j)
      • getColumnByName

        public double[] getColumnByName​(C s)
        Parameters:
        s - String
        Returns:
        double[]
      • getRawMatrix

        public double[][] getRawMatrix()
      • getRow

        public abstract double[] getRow​(int i)
      • getRowArrayList

        public abstract cern.colt.list.DoubleArrayList getRowArrayList​(int i)
      • getRowByName

        public double[] getRowByName​(R s)
        Parameters:
        s - String
        Returns:
        double[]
      • getRowRange

        public abstract DoubleMatrix<R,​C> getRowRange​(int startRow,
                                                            int endRow)
        Parameters:
        startRow - inclusive, numbered from zero
        endRow - inclusive
        Returns:
      • sortByColumnAbsoluteValues

        public List<R> sortByColumnAbsoluteValues​(int i,
                                                  boolean descending)
        Parameters:
        i -
        descending -
      • subsetColumns

        public abstract DoubleMatrix<R,​C> subsetColumns​(List<C> columns)
        Create a copy of this matrix with only the selected columns, in the selected order.
        Parameters:
        columns -
        Returns:
      • subsetRows

        public abstract DoubleMatrix<R,​C> subsetRows​(List<R> rowNames)
        Create a copy of this matrix with only the selected rows, in the selected order.
        Parameters:
        rowNames -
        Returns:
      • viewColumn

        public abstract cern.colt.matrix.DoubleMatrix1D viewColumn​(int column)
      • viewRow

        public abstract cern.colt.matrix.DoubleMatrix1D viewRow​(int j)
        Parameters:
        j -
        Returns: