Skip to content

Commit

Permalink
Don't make map mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatyping authored and bluss committed Nov 11, 2021
1 parent 67cbfe1 commit 7bf4b62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xtest-blas/tests/oper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ fn range_mat_complex(m: Ix, n: Ix) -> Array2<Complex32> {
Array::linspace(0., (m * n) as f32 - 1., m * n)
.into_shape((m, n))
.unwrap()
.map_mut(|&mut f| Complex32::new(f, 0.))
.map(|&f| Complex32::new(f, 0.))
}

fn range_mat_complex64(m: Ix, n: Ix) -> Array2<Complex64> {
Array::linspace(0., (m * n) as f64 - 1., m * n)
.into_shape((m, n))
.unwrap()
.map_mut(|&mut f| Complex64::new(f, 0.))
.map(|&f| Complex64::new(f, 0.))
}

fn range1_mat64(m: Ix) -> Array1<f64> {
Expand Down

0 comments on commit 7bf4b62

Please sign in to comment.