Skip to content

Commit 6de5b42

Browse files
author
andrewrosemberg
committed
add sortperm and partialsortperm rrule
1 parent 4e3164a commit 6de5b42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rulesets/Base/nondiff.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ VERSION >= v"1.3" && @non_differentiable istaskfailed(::Task)
289289
VERSION >= v"1.4" && @non_differentiable only(::Char)
290290
@non_differentiable open(::Any)
291291

292+
@non_differentiable partialsortperm(::AbstractArray{Any}, ::Union{Integer, OrdinalRange})
292293
@non_differentiable pointer(::Any)
293294
@non_differentiable popdisplay(::AbstractDisplay)
294295
@non_differentiable position(::Base.Filesystem.File)
@@ -350,6 +351,7 @@ end
350351
@non_differentiable size(::Any, ::Any)
351352
@non_differentiable sizeof(::Any)
352353
@non_differentiable sleep(::Any)
354+
@non_differentiable sortperm(::AbstractArray{Any})
353355
@non_differentiable split(::AbstractString)
354356
@non_differentiable split(::AbstractString, ::AbstractChar)
355357
@non_differentiable splitdir(::AbstractString)

0 commit comments

Comments
 (0)