fix: Fix new clippy warnings (#79)

* Fix new clippy warnings

* Allow clippy::suspicious-operation-groupings
This commit is contained in:
Luis Moreno
2021-02-16 18:19:14 -04:00
committed by GitHub
parent 745d0b570e
commit 4af69878e0
5 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ impl<T: RealNumber, M: Matrix<T>> InteriorPointOptimizer<T, M> {
for i in 0..p {
self.prb[i] = T::two() + self.d1[i];
self.prs[i] = self.prb[i] * self.d1[i] - self.d2[i] * self.d2[i];
self.prs[i] = self.prb[i] * self.d1[i] - self.d2[i].powi(2);
}
let normg = grad.norm2();