File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -184,13 +184,12 @@ end
184
184
"""
185
185
permute!(v, p)
186
186
187
- Permute vector `v` in-place, according to permutation `p`. No checking is done
188
- to verify that `p` is a permutation.
187
+ Permute vector `v` according to permutation `p`, storing the result back into `v`.
188
+ No checking is done to verify that `p` is a permutation.
189
189
190
190
To return a new permutation, use `v[p]`. This is generally faster than `permute!(v, p)`;
191
191
it is even faster to write into a pre-allocated output array with `u .= @view v[p]`.
192
- (Even though `permute!` overwrites `v` in-place, it internally requires some allocation
193
- to keep track of which elements have been moved.)
192
+ (Even though `permute!` overwrites `v` in-place, it internally requires some allocation.)
194
193
195
194
$(_DOCS_ALIASING_WARNING)
196
195
You can’t perform that action at this time.
0 commit comments