Checkstyle: unnecessary parentheses

This commit is contained in:
Alex Herbert 2023-11-21 18:40:59 +00:00
parent e49cabff8b
commit 3620d60718
2 changed files with 3 additions and 1 deletions

View File

@ -625,7 +625,7 @@ public class CMAESOptimizer
oldFac += 1 - ccov1Sep - ccovmuSep;
diagC = diagC.scalarMultiply(oldFac) // regard old matrix
.add(square(pc).scalarMultiply(ccov1Sep)) // plus rank one update
.add((times(diagC, square(bestArz).multiply(weights))) // plus rank mu update
.add(times(diagC, square(bestArz).multiply(weights)) // plus rank mu update
.scalarMultiply(ccovmuSep));
diagD = sqrt(diagC); // replaces eig(C)
if (diagonalOnly > 1 &&

View File

@ -52,6 +52,8 @@
<suppress checks="UnnecessaryParentheses" files=".*[/\\]MultiDirectionalTransform\.java$" lines="94" />
<suppress checks="UnnecessaryParentheses" files=".*[/\\]NelderMeadTransform\.java$" lines="109" />
<suppress checks="UnnecessaryParentheses" files=".*[/\\]BaseMultiStartMultivariateOptimizer\.java$" lines="190" />
<suppress checks="UnnecessaryParentheses" files=".*[/\\]EventState\.java$" lines="258,297,299" />
<suppress checks="UnnecessaryParentheses" files=".*[/\\]FieldEventState\.java$" lines="220,241,243" />
<!-- Be more lenient on tests. -->
<suppress checks="Javadoc" files=".*[/\\]test[/\\].*" />