8000 Stack and concatenate by andrei-papou · Pull Request #735 · rust-ndarray/ndarray · GitHub
[go: up one dir, main page]

Skip to content

Stack and concatenate #735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
Rustfmt fixes
  • Loading branch information
andrei.papou committed Oct 17, 2019
commit 68f0e95a2f33d46a3c3726a0fac5ec2b95ffe75d
3 changes: 2 additions & 1 deletion src/stacking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ where
}
let mut res = Array::from_shape_vec(res_dim, v)?;

res.axis_iter_mut(axis).zip(arrays.into_iter())
res.axis_iter_mut(axis)
.zip(arrays.into_iter())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this zip seems to show that we would be fine with just using a slice of ArrayView as input, we don't need to use them by value

.for_each(|(mut assign_view, array)| {
assign_view.assign(&array);
});
Expand Down
0