@@ -101,7 +101,7 @@ to verify that `p` is a permutation.
101
101
To return a new permutation, use `v[p]`. Note that this is generally faster than
102
102
`permute!(v,p)` for large vectors.
103
103
104
- See also [`ipermute !`](@ref).
104
+ See also [`invpermute !`](@ref).
105
105
106
106
# Examples
107
107
```jldoctest
@@ -121,7 +121,7 @@ julia> A
121
121
"""
122
122
permute! (a, p:: AbstractVector ) = permute!! (a, copymutable (p))
123
123
124
- function ipermute !! (a, p:: AbstractVector{<:Integer} )
124
+ function invpermute !! (a, p:: AbstractVector{<:Integer} )
125
125
count = 0
126
126
start = 0
127
127
while count < length (a)
@@ -145,7 +145,7 @@ function ipermute!!(a, p::AbstractVector{<:Integer})
145
145
end
146
146
147
147
"""
148
- ipermute !(v, p)
148
+ invpermute !(v, p)
149
149
150
150
Like [`permute!`](@ref), but the inverse of the given permutation is applied.
151
151
@@ -155,7 +155,7 @@ julia> A = [1, 1, 3, 4];
155
155
156
156
julia> perm = [2, 4, 3, 1];
157
157
158
- julia> ipermute !(A, perm);
158
+ julia> invpermute !(A, perm);
159
159
160
160
julia> A
161
161
4-element Array{Int64,1}:
@@ -165,7 +165,7 @@ julia> A
165
165
1
166
166
```
167
167
"""
168
- ipermute ! (a, p:: AbstractVector ) = ipermute !! (a, copymutable (p))
168
+ invpermute ! (a, p:: AbstractVector ) = invpermute !! (a, copymutable (p))
169
169
170
170
"""
171
171
invperm(v)
0 commit comments