Skip to content

Commit 4b01d0d

Browse files
author
andrewrosemberg
committed
Add sort rrule
1 parent ab26023 commit 4b01d0d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rulesets/Base/nondiff.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,10 @@ end
351351
@non_differentiable size(::Any, ::Any)
352352
@non_differentiable sizeof(::Any)
353353
@non_differentiable sleep(::Any)
354+
@non_differentiable sort(::AbstractVector)
355+
@non_differentiable sort!(::AbstractVector)
354356
@non_differentiable sortperm(::AbstractArray{Any})
357+
@non_differentiable sortperm!(AbstractVector{<:Integer}, ::AbstractVector)
355358
@non_differentiable split(::AbstractString)
356359
@non_differentiable split(::AbstractString, ::AbstractChar)
357360
@non_differentiable splitdir(::AbstractString)

0 commit comments

Comments
 (0)