File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments