Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change dim arguments for diff and unique to keyword args #26776

Merged
merged 1 commit into from
Apr 12, 2018

Conversation

JeffBezanson
Copy link
Sponsor Member

We seem to have missed these somehow.

@JeffBezanson JeffBezanson added domain:arrays [a, r, r, a, y, s] kind:deprecation This change introduces or involves a deprecation status:triage This should be discussed on a triage call labels Apr 10, 2018
if dims === (:)
return invoke(unique, Tuple{Any}, A)
end
dim = dims
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this will work — you're in a @generated function here.

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, thanks.

@ararslan
Copy link
Member

Looks like you'll need

--- a/stdlib/LinearAlgebra/test/lapack.jl
+++ b/stdlib/LinearAlgebra/test/lapack.jl
@@ -202,7 +202,7 @@ end
         Bvs = eigvecs(B)
         Avs = eigvecs(A)
         Bvs = LAPACK.gebak!('S','R',ilo,ihi,scale,Bvs)
-        @test norm(diff(Avs ./ Bvs, 1)) < 100 * eps(abs(float(one(elty))))
+        @test norm(diff(Avs ./ Bvs, dims=1)) < 100 * eps(abs(float(one(elty))))
     end
 end

@ararslan
Copy link
Member

This is introducing a warning during the build:

WARNING: Method definition diff(AbstractArray{T, 2} where T) in module Base at multidimensional.jl:1111 overwritten at deprecated.jl:55.

Aside from that, a summary of the CI failures:

  • Travis macOS: Unrelated, missing a SuiteSparse header
  • AppVeyor Windows i686: Unrelated, timeout
  • CircleCI Linux x86-64: ??

@StefanKarpinski StefanKarpinski removed the status:triage This should be discussed on a triage call label Apr 12, 2018
@StefanKarpinski StefanKarpinski added this to the 1.0 milestone Apr 12, 2018
@mbauman mbauman merged commit 1508942 into master Apr 12, 2018
@mbauman mbauman deleted the jb/moredimargs branch April 12, 2018 18:33
mbauman added a commit that referenced this pull request Apr 12, 2018
* origin/master:
  A few more #26670 fixes (#26773)
  Revert "deprecate using the value of `.=`. fixes #25954" (#26754)
  change dim arguments for `diff` and `unique` to keyword args (#26776)
  reorder pmap arguments to allow do-block syntax (#26783)
  correct deprecated parametric method syntax (#26789)
  [NewOptimizer] handle new IR nodes correctly in binary format
  [NewOptimizer] support line number emission from new IR format
  fix #26453, require obviously-concrete lower bound for a var to be diagonal (#26567)
  fix #26743, spurious `return` path in try-finally in tail position (#26753)
  Also lift SelectInst addrspaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:arrays [a, r, r, a, y, s] kind:deprecation This change introduces or involves a deprecation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants