Hi all,

I'm learning rust and still a bit confused about `into_par_iter`

function.

I have an matrix (named `matrix`

) of type `ndarray::Array2`

, and I initialize it with all zeros. I also have an another matrix (named `another_matrix`

) of the same type and same shape. My purpose is, iterate over `matrix`

, assign the corresponding row in `another_matrix `

to `matrix`

, but since `matrix`

is quite huge, I want to use multi-threading. Therefore, I'm using `into_par_iter()`

to parallel the process.

Here is my code:

```
env_logger::init();
ThreadPoolBuilder::new()
.num_threads(self.n_threads)
.build_global()
.unwrap();
// some more irrelevant code here...
let mut matix= Array2::zeros(storage.shape());
for (idx, row) in matix.outer_iter_mut().into_par_iter().enumerate() {
row.assign(&anothor_matrix.row(idx));
}
```

But the compiler says:

rayon::iter::enumerate::Enumerate<ndarray::parallel::par::Parallel<ndarray::iterators::AxisIterMut<'_, _, ndarray::dimension::dim::Dim<[usize; 1]>>>>` is not an iterator

How do I fix this?

Thank you!