Convenience method that will return true only if the two input matrices have dimensions compatible for multiplying A B @param A the first matrix @param B the second matrix @return true if they have dimensions allowing multiplication, false otherwise.
(Matrix A, Matrix B)
| 783 | * {@code false} otherwise. |
| 784 | */ |
| 785 | public static boolean canMultiply(Matrix A, Matrix B) |
| 786 | { |
| 787 | return A.cols() == B.rows(); |
| 788 | } |
| 789 | |
| 790 | @Override |
| 791 | public boolean equals(Object obj) |