ndarray_cg/vector/operator/
div.rs1mod private
2{
3 use crate::*;
4 use vector::{ div_scalar, div_mut };
6
7 impl< E, const LEN : usize > Div< E > for Vector< E, LEN >
8 where
9 E : MatEl + NdFloat
10 {
11 type Output = Self;
12
13 fn div(self, rhs : E) -> Self::Output
14 {
15 div_scalar( &self, rhs )
16 }
17 }
18
19 impl< E, const LEN : usize > DivAssign< E > for Vector< E, LEN >
20 where
21 E : MatEl + NdFloat
22 {
23 fn div_assign( &mut self, rhs : E )
24 {
25 *self = *self / rhs;
26 }
27 }
28
29 impl< E, const LEN : usize > DivAssign for Vector< E, LEN >
30 where
31 E : MatEl + NdFloat
32 {
33 fn div_assign( &mut self, rhs: Self )
34 {
35 div_mut( self, &rhs );
36 }
37 }
38
39}
40
41crate::mod_interface!
42{
43
44}