Interface Access2D<N extends java.lang.Comparable<N>>

    • Method Detail

      • toString

        static java.lang.String toString​(Access2D<?> matrix)
      • wrap

        static Access2D<java.lang.Double> wrap​(double[][] target)
      • wrap

        static <N extends java.lang.Comparable<N>> Access2D<N> wrap​(N[][] target)
      • byteValue

        default byte byteValue​(int index)
        Specified by:
        byteValue in interface Access1D<N extends java.lang.Comparable<N>>
      • byteValue

        default byte byteValue​(int row,
                               int col)
      • byteValue

        default byte byteValue​(long index)
        Specified by:
        byteValue in interface Access1D<N extends java.lang.Comparable<N>>
      • byteValue

        default byte byteValue​(long row,
                               long col)
      • columns

        default Access2D<N> columns​(int... columns)
      • columns

        default Access2D<N> columns​(long... columns)
      • doubleValue

        default double doubleValue​(int index)
        Specified by:
        doubleValue in interface Access1D<N extends java.lang.Comparable<N>>
      • doubleValue

        double doubleValue​(int row,
                           int col)
        Extracts one element of this matrix as a double.
        Parameters:
        row - A row index.
        col - A column index.
        Returns:
        One matrix element
      • doubleValue

        default double doubleValue​(long index)
        Specified by:
        doubleValue in interface Access1D<N extends java.lang.Comparable<N>>
      • doubleValue

        default double doubleValue​(long row,
                                   long col)
      • elements

        default ElementView2D<N,​?> elements()
        Description copied from interface: Access1D
        Returns an Iterable of ElementView1D. It allows to iterate over the instance's element "positions" without actually extracting the elements (unless you explicitly do so).
        Specified by:
        elements in interface Access1D<N extends java.lang.Comparable<N>>
      • floatValue

        default float floatValue​(int index)
        Specified by:
        floatValue in interface Access1D<N extends java.lang.Comparable<N>>
      • floatValue

        default float floatValue​(int row,
                                 int col)
      • floatValue

        default float floatValue​(long index)
        Specified by:
        floatValue in interface Access1D<N extends java.lang.Comparable<N>>
      • floatValue

        default float floatValue​(long row,
                                 long col)
      • get

        default N get​(long index)
        Specified by:
        get in interface Access1D<N extends java.lang.Comparable<N>>
      • get

        N get​(long row,
              long col)
      • intValue

        default int intValue​(int index)
        Specified by:
        intValue in interface Access1D<N extends java.lang.Comparable<N>>
      • intValue

        default int intValue​(int row,
                             int col)
      • intValue

        default int intValue​(long index)
        Specified by:
        intValue in interface Access1D<N extends java.lang.Comparable<N>>
      • intValue

        default int intValue​(long row,
                             long col)
      • longValue

        default long longValue​(int index)
        Specified by:
        longValue in interface Access1D<N extends java.lang.Comparable<N>>
      • longValue

        default long longValue​(int row,
                               int col)
      • longValue

        default long longValue​(long index)
        Specified by:
        longValue in interface Access1D<N extends java.lang.Comparable<N>>
      • longValue

        default long longValue​(long row,
                               long col)
      • nonzeros

        default ElementView2D<N,​?> nonzeros()
        Description copied from interface: Access1D
        Similar to Access1D.elements() but avoids elements that are structurally known to be zero. (That does not eliminate all zero-values from this view.) With an arbitrary (dense) unstructured implementation the Access1D.nonzeros() and Access1D.elements() methods do the same thing! Only some specific implementations are able to actually exploit structure/sparsity to view fewer elements.
        Specified by:
        nonzeros in interface Access1D<N extends java.lang.Comparable<N>>
      • rows

        default Access2D<N> rows​(int... rows)
      • rows

        default Access2D<N> rows​(long... rows)
      • select

        default Access2D<N> select​(int[] rows,
                                   int[] columns)
      • select

        default Access2D<N> select​(long[] rows,
                                   long[] columns)
        Creates a view of the underlying data structure of only the selected elements. If either the rows or columns input arguments are null or empty arrays, then that transaltes to all rows and/or columns.
      • shortValue

        default short shortValue​(int index)
        Specified by:
        shortValue in interface Access1D<N extends java.lang.Comparable<N>>
      • shortValue

        default short shortValue​(int row,
                                 int col)
      • shortValue

        default short shortValue​(long index)
        Specified by:
        shortValue in interface Access1D<N extends java.lang.Comparable<N>>
      • shortValue

        default short shortValue​(long row,
                                 long col)
      • toRawCopy2D

        default double[][] toRawCopy2D()