Skip to content

Commit

Permalink
Add compat annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
nickrobinson251 committed Sep 2, 2019
1 parent c40a6fb commit c4c2419
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Standard library changes

* The methods of `mktemp` and `mktempdir` which take a function body to pass temporary paths to no longer throw errors if the path is already deleted when the function body returns ([#33091]).

* A new `dropdims(f, args...; dims, kwargs...)` method computes the reduction `f` over the region described by `dims` and then drops those dimensions from the result ([#23500]).
* A new `dropdims(f, args...; dims, kwargs...)` method computes the reduction `f` over the region described by `dims` and then drops those dimensions from the result ([#33130]).

#### Libdl

Expand Down
3 changes: 3 additions & 0 deletions base/abstractarraymath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ julia> dropdims(sum, abs2, a, dims=2)
57.0
94.0
```
!!! compat "Julia 1.4"
This function requires at least Julia 1.4.
"""
dropdims(f, args...; dims, kwargs...) = _dropdims(f(args...; kwargs..., dims=dims), dims)

Expand Down

0 comments on commit c4c2419

Please sign in to comment.