Class ObjectMatrixImpl<R,​C,​V>

    • Constructor Detail

      • ObjectMatrixImpl

        public ObjectMatrixImpl​(int x,
                                int y)
    • Method Detail

      • columns

        public int columns()
        Description copied from interface: Matrix2D
        Get the number of columns the matrix has.
        Specified by:
        columns in interface Matrix2D<R,​C,​V>
        Returns:
      • get

        public V get​(int row,
                     int column)
        Specified by:
        get in interface ObjectMatrix<R,​C,​V>
        Parameters:
        row -
        column -
        Returns:
      • get

        public Object get​(R row,
                          C column)
      • getEntry

        public V getEntry​(int row,
                          int column)
        Specified by:
        getEntry in interface Matrix2D<R,​C,​V>
        Returns:
      • isMissing

        public boolean isMissing​(int i,
                                 int j)
        Description copied from interface: Matrix2D
        Check if the value at a given index is missing.
        Specified by:
        isMissing in interface Matrix2D<R,​C,​V>
        Parameters:
        i - row
        j - column
        Returns:
        true if the value is missing, false otherwise.
      • rows

        public int rows()
        Description copied from interface: Matrix2D
        Get the number of rows the matrix has
        Specified by:
        rows in interface Matrix2D<R,​C,​V>
        Returns:
      • set

        public void set​(int row,
                        int column,
                        V value)
        Specified by:
        set in interface Matrix2D<R,​C,​V>
      • setByKeys

        public void setByKeys​(R r,
                              C c,
                              V v)
        Specified by:
        setByKeys in interface Matrix2D<R,​C,​V>
      • subset

        public ObjectMatrix<R,​C,​V> subset​(int startRow,
                                                      int startCol,
                                                      int numRow,
                                                      int numCol)
        Specified by:
        subset in interface ObjectMatrix<R,​C,​V>
        Returns:
      • viewColumn

        public cern.colt.matrix.ObjectMatrix1D viewColumn​(int column)
        Parameters:
        column -
        Returns:
      • viewRow

        public cern.colt.matrix.ObjectMatrix1D viewRow​(int row)
        Parameters:
        row -
        Returns: