@@ -209,7 +209,6 @@ macro_rules! impl_vector {
209209 impl <S : Neg <Output = S >> Neg for $VectorN<S > {
210210 type Output = $VectorN<S >;
211211
212- #[ inline]
213212 default_fn!( neg( self ) -> $VectorN<S > { $VectorN:: new( $( -self . $field) ,+) } ) ;
214213 }
215214
@@ -309,30 +308,30 @@ macro_rules! impl_vector {
309308 } ) ;
310309
311310 impl <S : BaseNum > ElementWise for $VectorN<S > {
312- # [ inline ] default_fn!( add_element_wise( self , rhs: $VectorN<S >) -> $VectorN<S > { $VectorN:: new( $( self . $field + rhs. $field) ,+) } ) ;
313- # [ inline ] default_fn!( sub_element_wise( self , rhs: $VectorN<S >) -> $VectorN<S > { $VectorN:: new( $( self . $field - rhs. $field) ,+) } ) ;
314- # [ inline ] default_fn!( mul_element_wise( self , rhs: $VectorN<S >) -> $VectorN<S > { $VectorN:: new( $( self . $field * rhs. $field) ,+) } ) ;
315- # [ inline ] default_fn!( div_element_wise( self , rhs: $VectorN<S >) -> $VectorN<S > { $VectorN:: new( $( self . $field / rhs. $field) ,+) } ) ;
311+ default_fn!( add_element_wise( self , rhs: $VectorN<S >) -> $VectorN<S > { $VectorN:: new( $( self . $field + rhs. $field) ,+) } ) ;
312+ default_fn!( sub_element_wise( self , rhs: $VectorN<S >) -> $VectorN<S > { $VectorN:: new( $( self . $field - rhs. $field) ,+) } ) ;
313+ default_fn!( mul_element_wise( self , rhs: $VectorN<S >) -> $VectorN<S > { $VectorN:: new( $( self . $field * rhs. $field) ,+) } ) ;
314+ default_fn!( div_element_wise( self , rhs: $VectorN<S >) -> $VectorN<S > { $VectorN:: new( $( self . $field / rhs. $field) ,+) } ) ;
316315 #[ inline] fn rem_element_wise( self , rhs: $VectorN<S >) -> $VectorN<S > { $VectorN:: new( $( self . $field % rhs. $field) ,+) }
317316
318- # [ inline ] default_fn!( add_assign_element_wise( & mut self , rhs: $VectorN<S >) { $( self . $field += rhs. $field) ;+ } ) ;
319- # [ inline ] default_fn!( sub_assign_element_wise( & mut self , rhs: $VectorN<S >) { $( self . $field -= rhs. $field) ;+ } ) ;
320- # [ inline ] default_fn!( mul_assign_element_wise( & mut self , rhs: $VectorN<S >) { $( self . $field *= rhs. $field) ;+ } ) ;
321- # [ inline ] default_fn!( div_assign_element_wise( & mut self , rhs: $VectorN<S >) { $( self . $field /= rhs. $field) ;+ } ) ;
317+ default_fn!( add_assign_element_wise( & mut self , rhs: $VectorN<S >) { $( self . $field += rhs. $field) ;+ } ) ;
318+ default_fn!( sub_assign_element_wise( & mut self , rhs: $VectorN<S >) { $( self . $field -= rhs. $field) ;+ } ) ;
319+ default_fn!( mul_assign_element_wise( & mut self , rhs: $VectorN<S >) { $( self . $field *= rhs. $field) ;+ } ) ;
320+ default_fn!( div_assign_element_wise( & mut self , rhs: $VectorN<S >) { $( self . $field /= rhs. $field) ;+ } ) ;
322321 #[ inline] fn rem_assign_element_wise( & mut self , rhs: $VectorN<S >) { $( self . $field %= rhs. $field) ;+ }
323322 }
324323
325324 impl <S : BaseNum > ElementWise <S > for $VectorN<S > {
326- # [ inline ] default_fn!( add_element_wise( self , rhs: S ) -> $VectorN<S > { $VectorN:: new( $( self . $field + rhs) ,+) } ) ;
327- # [ inline ] default_fn!( sub_element_wise( self , rhs: S ) -> $VectorN<S > { $VectorN:: new( $( self . $field - rhs) ,+) } ) ;
328- # [ inline ] default_fn!( mul_element_wise( self , rhs: S ) -> $VectorN<S > { $VectorN:: new( $( self . $field * rhs) ,+) } ) ;
329- # [ inline ] default_fn!( div_element_wise( self , rhs: S ) -> $VectorN<S > { $VectorN:: new( $( self . $field / rhs) ,+) } ) ;
325+ default_fn!( add_element_wise( self , rhs: S ) -> $VectorN<S > { $VectorN:: new( $( self . $field + rhs) ,+) } ) ;
326+ default_fn!( sub_element_wise( self , rhs: S ) -> $VectorN<S > { $VectorN:: new( $( self . $field - rhs) ,+) } ) ;
327+ default_fn!( mul_element_wise( self , rhs: S ) -> $VectorN<S > { $VectorN:: new( $( self . $field * rhs) ,+) } ) ;
328+ default_fn!( div_element_wise( self , rhs: S ) -> $VectorN<S > { $VectorN:: new( $( self . $field / rhs) ,+) } ) ;
330329 #[ inline] fn rem_element_wise( self , rhs: S ) -> $VectorN<S > { $VectorN:: new( $( self . $field % rhs) ,+) }
331330
332- # [ inline ] default_fn!( add_assign_element_wise( & mut self , rhs: S ) { $( self . $field += rhs) ;+ } ) ;
333- # [ inline ] default_fn!( sub_assign_element_wise( & mut self , rhs: S ) { $( self . $field -= rhs) ;+ } ) ;
334- # [ inline ] default_fn!( mul_assign_element_wise( & mut self , rhs: S ) { $( self . $field *= rhs) ;+ } ) ;
335- # [ inline ] default_fn!( div_assign_element_wise( & mut self , rhs: S ) { $( self . $field /= rhs) ;+ } ) ;
331+ default_fn!( add_assign_element_wise( & mut self , rhs: S ) { $( self . $field += rhs) ;+ } ) ;
332+ default_fn!( sub_assign_element_wise( & mut self , rhs: S ) { $( self . $field -= rhs) ;+ } ) ;
333+ default_fn!( mul_assign_element_wise( & mut self , rhs: S ) { $( self . $field *= rhs) ;+ } ) ;
334+ default_fn!( div_assign_element_wise( & mut self , rhs: S ) { $( self . $field /= rhs) ;+ } ) ;
336335 #[ inline] fn rem_assign_element_wise( & mut self , rhs: S ) { $( self . $field %= rhs) ;+ }
337336 }
338337
0 commit comments