Skip to content

Commit 237d5f6

Browse files
authored
Merge pull request #394 from andrewrosemberg/ar/sortperm
Add Rules for sortperm and friends
2 parents 4e3164a + 5ad21af commit 237d5f6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ChainRules"
22
uuid = "082447d4-558c-5d27-93f4-14fc19e9eca2"
3-
version = "0.7.56"
3+
version = "0.7.57"
44

55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

src/rulesets/Base/nondiff.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ 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(::AbstractVector, ::Union{Integer, OrdinalRange})
293+
@non_differentiable partialsortperm!(::AbstractVector{<:Integer}, ::AbstractVector, ::Union{Integer, OrdinalRange})
292294
@non_differentiable pointer(::Any)
293295
@non_differentiable popdisplay(::AbstractDisplay)
294296
@non_differentiable position(::Base.Filesystem.File)
@@ -350,6 +352,8 @@ end
350352
@non_differentiable size(::Any, ::Any)
351353
@non_differentiable sizeof(::Any)
352354
@non_differentiable sleep(::Any)
355+
@non_differentiable sortperm(::AbstractVector)
356+
@non_differentiable sortperm!(::AbstractVector{<:Integer}, ::AbstractVector)
353357
@non_differentiable split(::AbstractString)
354358
@non_differentiable split(::AbstractString, ::AbstractChar)
355359
@non_differentiable splitdir(::AbstractString)

0 commit comments

Comments
 (0)