File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -731,34 +731,34 @@ pub trait MutArrayView1<T: Debug + Display + Copy + Sized>:
731
731
pub trait MutArrayView2 < T : Debug + Display + Copy + Sized > :
732
732
MutArray < T , ( usize , usize ) > + ArrayView2 < T >
733
733
{
734
- ///
734
+ /// copy values from another array
735
735
fn copy_from ( & mut self , other : & dyn Array < T , ( usize , usize ) > ) {
736
736
self . iterator_mut ( 0 )
737
737
. zip ( other. iterator ( 0 ) )
738
738
. for_each ( |( s, o) | * s = * o) ;
739
739
}
740
- ///
740
+ /// update view with absolute values
741
741
fn abs_mut ( & mut self )
742
742
where
743
743
T : Number + Signed ,
744
744
{
745
745
self . iterator_mut ( 0 ) . for_each ( |v| * v = v. abs ( ) ) ;
746
746
}
747
- ///
747
+ /// update view values with opposite sign
748
748
fn neg_mut ( & mut self )
749
749
where
750
750
T : Number + Neg < Output = T > ,
751
751
{
752
752
self . iterator_mut ( 0 ) . for_each ( |v| * v = -* v) ;
753
753
}
754
- ///
754
+ /// update view values at power `p`
755
755
fn pow_mut ( & mut self , p : T )
756
756
where
757
757
T : RealNumber ,
758
758
{
759
759
self . iterator_mut ( 0 ) . for_each ( |v| * v = v. powf ( p) ) ;
760
760
}
761
- ///
761
+ /// scale view values
762
762
fn scale_mut ( & mut self , mean : & [ T ] , std : & [ T ] , axis : u8 )
763
763
where
764
764
T : Number ,
You can’t perform that action at this time.
0 commit comments