Skip to content

Commit

Permalink
satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Samuels authored and msk committed May 20, 2024
1 parent 1bf554a commit ebaa38b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ica.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ where
let k = unsafe { k.assume_init() };
let mut x1 = k.dot(&x);
let n_features_sqrt = A::from_usize(n_features).expect("approximation").sqrt();
for x_elem in x1.iter_mut() {
for x_elem in &mut x1 {
*x_elem *= n_features_sqrt;
}

Expand Down Expand Up @@ -386,7 +386,7 @@ where
A: Scalar,
S: DataMut<Elem = A>,
{
for elem in input.iter_mut() {
for elem in &mut input {
*elem = elem.tanh();
}
let ncols = A::from_usize(input.ncols()).expect("approximation");
Expand Down

0 comments on commit ebaa38b

Please sign in to comment.