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

Method sameDimensions

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

Convenience method that will return true only if the two input matrices have the exact same dimensions. @param A the first matrix @param B the second matrix @return true if they have the exact same dimensions, false otherwise.

(Matrix A, Matrix B)

Source from the content-addressed store, hash-verified

770 * {@code false} otherwise.
771 */
772 public static boolean sameDimensions(Matrix A, Matrix B)
773 {
774 return A.rows() == B.rows() && A.cols() == B.cols();
775 }
776
777 /**
778 * Convenience method that will return {@code true} only if the two input

Callers 3

mutableAddMethod · 0.95
mutableAddMethod · 0.80
mutableAddMethod · 0.80

Calls 2

rowsMethod · 0.45
colsMethod · 0.45

Tested by

no test coverage detected