Interface MatrixPredicate


  • public interface MatrixPredicate
    A matrix predicate that tests each matrix element.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean test​(int rows, int columns)
      Tests number of rows and columns in the matrix.
      boolean test​(int i, int j, double value)
      Tests matrix element.
    • Method Detail

      • test

        boolean test​(int rows,
                     int columns)
        Tests number of rows and columns in the matrix.
        Parameters:
        rows - the number of rows
        columns - the number of columns
        Returns:
        whether the shape meets this predicate
      • test

        boolean test​(int i,
                     int j,
                     double value)
        Tests matrix element.
        Parameters:
        i - the row index
        j - the column index
        value - the element's value
        Returns:
        whether the element meets this predicate