Skip to content

Commit 72c928e

Browse files
committed
start to add comments
1 parent fe4247b commit 72c928e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/linalg/basic/arrays.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -731,34 +731,34 @@ pub trait MutArrayView1<T: Debug + Display + Copy + Sized>:
731731
pub trait MutArrayView2<T: Debug + Display + Copy + Sized>:
732732
MutArray<T, (usize, usize)> + ArrayView2<T>
733733
{
734-
///
734+
/// copy values from another array
735735
fn copy_from(&mut self, other: &dyn Array<T, (usize, usize)>) {
736736
self.iterator_mut(0)
737737
.zip(other.iterator(0))
738738
.for_each(|(s, o)| *s = *o);
739739
}
740-
///
740+
/// update view with absolute values
741741
fn abs_mut(&mut self)
742742
where
743743
T: Number + Signed,
744744
{
745745
self.iterator_mut(0).for_each(|v| *v = v.abs());
746746
}
747-
///
747+
/// update view values with opposite sign
748748
fn neg_mut(&mut self)
749749
where
750750
T: Number + Neg<Output = T>,
751751
{
752752
self.iterator_mut(0).for_each(|v| *v = -*v);
753753
}
754-
///
754+
/// update view values at power `p`
755755
fn pow_mut(&mut self, p: T)
756756
where
757757
T: RealNumber,
758758
{
759759
self.iterator_mut(0).for_each(|v| *v = v.powf(p));
760760
}
761-
///
761+
/// scale view values
762762
fn scale_mut(&mut self, mean: &[T], std: &[T], axis: u8)
763763
where
764764
T: Number,

0 commit comments

Comments
 (0)