File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/com/thealgorithms/matrix/utils Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ com.thealgorithms.maths.KaprekarNumbers=UselessParentheses
46
46
com.thealgorithms.maths.KeithNumber =UselessParentheses
47
47
com.thealgorithms.maths.LeonardoNumber =UselessParentheses
48
48
com.thealgorithms.maths.LinearDiophantineEquationsSolver =UselessParentheses
49
+ com.thealgorithms.maths.MatrixUtil =UselessParentheses
49
50
com.thealgorithms.maths.RomanNumeralUtil =UselessParentheses
50
51
com.thealgorithms.maths.SecondMinMax =UselessParentheses
51
52
com.thealgorithms.maths.SecondMinMaxTest =UnnecessaryFullyQualifiedName
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ private static boolean isValid(final BigDecimal[][] matrix) {
19
19
}
20
20
21
21
private static boolean hasEqualSizes (final BigDecimal [][] matrix1 , final BigDecimal [][] matrix2 ) {
22
- return ( isValid (matrix1 ) && isValid (matrix2 ) && matrix1 .length == matrix2 .length && matrix1 [0 ].length == matrix2 [0 ].length ) ;
22
+ return isValid (matrix1 ) && isValid (matrix2 ) && matrix1 .length == matrix2 .length && matrix1 [0 ].length == matrix2 [0 ].length ;
23
23
}
24
24
25
25
private static boolean canMultiply (final BigDecimal [][] matrix1 , final BigDecimal [][] matrix2 ) {
26
- return ( isValid (matrix1 ) && isValid (matrix2 ) && matrix1 [0 ].length == matrix2 .length ) ;
26
+ return isValid (matrix1 ) && isValid (matrix2 ) && matrix1 [0 ].length == matrix2 .length ;
27
27
}
28
28
29
29
public static void validateInputMatrix (double [][] matrix ) {
You can’t perform that action at this time.
0 commit comments