Package org.la4j.matrix.functor
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 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
-
-