Package org.la4j.matrix.functor
Interface MatrixPredicate
public interface MatrixPredicate
A matrix predicate that tests each matrix element.
-
Method Summary
-
Method Details
-
test
boolean test(int rows, int columns) Tests number of rows and columns in the matrix.- Parameters:
rows
- the number of rowscolumns
- 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 indexj
- the column indexvalue
- the element's value- Returns:
- whether the element meets this predicate
-