|
55 | 55 | issorted(v, lt=isless, by=identity, rev::Bool=false, order::Ordering=Forward) |
56 | 56 |
|
57 | 57 | Test whether a vector is in sorted order. The `lt`, `by` and `rev` keywords modify what |
58 | | -order is considered to be sorted just as they do for [`sort`](@ref). |
| 58 | +order is considered to be sorted just as they do for `sort`. |
59 | 59 |
|
60 | 60 | # Examples |
61 | 61 | ```jldoctest |
@@ -144,7 +144,7 @@ partialsort!(v::AbstractVector, k::Union{Integer,OrdinalRange}; |
144 | 144 | """ |
145 | 145 | partialsort(v, k, by=<transform>, lt=<comparison>, rev=false) |
146 | 146 |
|
147 | | -Variant of [`partialsort!`](@ref) which copies `v` before partially sorting it, thereby returning the |
| 147 | +Variant of `partialsort!` which copies `v` before partially sorting it, thereby returning the |
148 | 148 | same thing as `partialsort!` but leaving `v` unmodified. |
149 | 149 | """ |
150 | 150 | partialsort(v::AbstractVector, k::Union{Integer,OrdinalRange}; kws...) = |
@@ -289,7 +289,7 @@ according to the order specified by the `by`, `lt` and `rev` keywords, assuming |
289 | 289 | is already sorted in that order. Return an empty range located at the insertion point |
290 | 290 | if `a` does not contain values equal to `x`. |
291 | 291 |
|
292 | | -See also: [`insorted`](@ref), [`searchsortedfirst`](@ref), [`sort`](@ref), [`findall`](@ref). |
| 292 | +See also: `insorted`, `searchsortedfirst`, `sort`, [`findall`](@ref). |
293 | 293 |
|
294 | 294 | # Examples |
295 | 295 | ```jldoctest |
@@ -319,7 +319,7 @@ specified order. Return `lastindex(a) + 1` if `x` is greater than all values in |
319 | 319 |
|
320 | 320 | `insert!`ing `x` at this index will maintain sorted order. |
321 | 321 |
|
322 | | -See also: [`searchsortedlast`](@ref), [`searchsorted`](@ref), [`findfirst`](@ref). |
| 322 | +See also: `searchsortedlast`, `searchsorted`, [`findfirst`](@ref). |
323 | 323 |
|
324 | 324 | # Examples |
325 | 325 | ```jldoctest |
@@ -372,7 +372,7 @@ julia> searchsortedlast([1, 2, 4, 5, 5, 7], 0) # no match, insert at start |
372 | 372 | Determine whether an item `x` is in the sorted collection `a`, in the sense that |
373 | 373 | it is [`==`](@ref) to one of the values of the collection according to the order |
374 | 374 | specified by the `by`, `lt` and `rev` keywords, assuming that `a` is already |
375 | | -sorted in that order, see [`sort`](@ref) for the keywords. |
| 375 | +sorted in that order, see `sort` for the keywords. |
376 | 376 |
|
377 | 377 | See also [`in`](@ref). |
378 | 378 |
|
@@ -430,14 +430,14 @@ end |
430 | 430 |
|
431 | 431 | Indicate that a sorting function should use the partial quick sort |
432 | 432 | algorithm. Partial quick sort returns the smallest `k` elements sorted from smallest |
433 | | -to largest, finding them and sorting them using [`QuickSort`](@ref). |
| 433 | +to largest, finding them and sorting them using `QuickSort`. |
434 | 434 |
|
435 | 435 | Characteristics: |
436 | 436 | * *not stable*: does not preserve the ordering of elements which |
437 | 437 | compare equal (e.g. "a" and "A" in a sort of letters which |
438 | 438 | ignores case). |
439 | 439 | * *in-place* in memory. |
440 | | - * *divide-and-conquer*: sort strategy similar to [`MergeSort`](@ref). |
| 440 | + * *divide-and-conquer*: sort strategy similar to `MergeSort`. |
441 | 441 | """ |
442 | 442 | struct PartialQuickSort{T <: Union{Integer,OrdinalRange}} <: Algorithm |
443 | 443 | k::T |
|
960 | 960 | """ |
961 | 961 | sort(v; alg::Algorithm=defalg(v), lt=isless, by=identity, rev::Bool=false, order::Ordering=Forward) |
962 | 962 |
|
963 | | -Variant of [`sort!`](@ref) that returns a sorted copy of `v` leaving `v` itself unmodified. |
| 963 | +Variant of `sort!` that returns a sorted copy of `v` leaving `v` itself unmodified. |
964 | 964 |
|
965 | 965 | # Examples |
966 | 966 | ```jldoctest |
@@ -1020,7 +1020,7 @@ partialsortperm(v::AbstractVector, k::Union{Integer,OrdinalRange}; kwargs...) = |
1020 | 1020 | """ |
1021 | 1021 | partialsortperm!(ix, v, k; by=<transform>, lt=<comparison>, rev=false, initialized=false) |
1022 | 1022 |
|
1023 | | -Like [`partialsortperm`](@ref), but accepts a preallocated index vector `ix` the same size as |
| 1023 | +Like `partialsortperm`, but accepts a preallocated index vector `ix` the same size as |
1024 | 1024 | `v`, which is used to store (a permutation of) the indices of `v`. |
1025 | 1025 |
|
1026 | 1026 | If the index vector `ix` is initialized with the indices of `v` (or a permutation thereof), `initialized` should be set to |
@@ -1092,11 +1092,11 @@ end |
1092 | 1092 |
|
1093 | 1093 | Return a permutation vector or array `I` that puts `A[I]` in sorted order along the given dimension. |
1094 | 1094 | If `A` has more than one dimension, then the `dims` keyword argument must be specified. The order is specified |
1095 | | -using the same keywords as [`sort!`](@ref). The permutation is guaranteed to be stable even |
| 1095 | +using the same keywords as `sort!`. The permutation is guaranteed to be stable even |
1096 | 1096 | if the sorting algorithm is unstable, meaning that indices of equal elements appear in |
1097 | 1097 | ascending order. |
1098 | 1098 |
|
1099 | | -See also [`sortperm!`](@ref), [`partialsortperm`](@ref), [`invperm`](@ref), [`indexin`](@ref). |
| 1099 | +See also `sortperm!`, `partialsortperm`, [`invperm`](@ref), [`indexin`](@ref). |
1100 | 1100 | To sort slices of an array, refer to [`sortslices`](@ref). |
1101 | 1101 |
|
1102 | 1102 | # Examples |
@@ -1159,7 +1159,7 @@ end |
1159 | 1159 | """ |
1160 | 1160 | sortperm!(ix, A; alg::Algorithm=DEFAULT_UNSTABLE, lt=isless, by=identity, rev::Bool=false, order::Ordering=Forward, initialized::Bool=false, [dims::Integer]) |
1161 | 1161 |
|
1162 | | -Like [`sortperm`](@ref), but accepts a preallocated index vector or array `ix` with the same `axes` as `A`. If `initialized` is `false` |
| 1162 | +Like `sortperm`, but accepts a preallocated index vector or array `ix` with the same `axes` as `A`. If `initialized` is `false` |
1163 | 1163 | (the default), `ix` is initialized to contain the values `LinearIndices(A)`. |
1164 | 1164 |
|
1165 | 1165 | # Examples |
@@ -1241,7 +1241,7 @@ end |
1241 | 1241 | sort(A; dims::Integer, alg::Algorithm=DEFAULT_UNSTABLE, lt=isless, by=identity, rev::Bool=false, order::Ordering=Forward) |
1242 | 1242 |
|
1243 | 1243 | Sort a multidimensional array `A` along the given dimension. |
1244 | | -See [`sort!`](@ref) for a description of possible |
| 1244 | +See `sort!` for a description of possible |
1245 | 1245 | keyword arguments. |
1246 | 1246 |
|
1247 | 1247 | To sort slices of an array, refer to [`sortslices`](@ref). |
@@ -1300,7 +1300,7 @@ end |
1300 | 1300 | sort!(A; dims::Integer, alg::Algorithm=defalg(A), lt=isless, by=identity, rev::Bool=false, order::Ordering=Forward) |
1301 | 1301 |
|
1302 | 1302 | Sort the multidimensional array `A` along dimension `dims`. |
1303 | | -See [`sort!`](@ref) for a description of possible keyword arguments. |
| 1303 | +See `sort!` for a description of possible keyword arguments. |
1304 | 1304 |
|
1305 | 1305 | To sort slices of an array, refer to [`sortslices`](@ref). |
1306 | 1306 |
|
|
0 commit comments