Skip to content

Commit 6f88c88

Browse files
committed
chore: format all files
1 parent 78759fd commit 6f88c88

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

oars/src/constructors/bose.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,8 @@ impl<T: Integer> OAConstructor<T> for Bose<T> {
9292

9393
for i in 0..n.to_usize().unwrap() {
9494
for j in 2..self.dimensions.to_usize().unwrap() {
95-
points[[i, j]] = (points[[i, 0]]
96-
+ T::from(j - 1).unwrap() * points[[i, 1]])
97-
% self.prime_base;
95+
points[[i, j]] =
96+
(points[[i, 0]] + T::from(j - 1).unwrap() * points[[i, 1]]) % self.prime_base;
9897
}
9998
}
10099

oars/src/constructors/bush.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ impl<T: Integer> OAConstructor<T> for Bush<T> {
9494
let poly_dims = min(self.dimensions, self.prime_base);
9595

9696
for j in 0..poly_dims.to_usize().unwrap() {
97-
points[[i, j]] =
98-
poly_eval(&coeffs, T::from(j).unwrap()) % self.prime_base;
97+
points[[i, j]] = poly_eval(&coeffs, T::from(j).unwrap()) % self.prime_base;
9998
}
10099

101100
if self.dimensions == self.prime_base + T::from(1).unwrap() {

0 commit comments

Comments
 (0)