MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / canMultiply

Method canMultiply

JSAT/src/jsat/linear/Matrix.java:785–788  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)

Callers 4

multiplyMethod · 0.80
blockMultiplyMethod · 0.80
multiplyMethod · 0.80
multiplyMethod · 0.80

Calls 2

colsMethod · 0.45
rowsMethod · 0.45

Tested by

no test coverage detected