Skip to content

deprecate isimag#19949

Merged
StefanKarpinski merged 1 commit intoJuliaLang:masterfrom
Sacha0:depisimag
Jan 12, 2017
Merged

deprecate isimag#19949
StefanKarpinski merged 1 commit intoJuliaLang:masterfrom
Sacha0:depisimag

Conversation

@Sacha0
Copy link
Copy Markdown
Member

@Sacha0 Sacha0 commented Jan 9, 2017

This pull request deprecates isimag (presently (tentatively) in favor of Base.iszero(real(z))). See discussion in #19947. Best!

@Sacha0 Sacha0 added deprecation This change introduces or involves a deprecation maths Mathematical functions labels Jan 9, 2017
@stevengj
Copy link
Copy Markdown
Member

stevengj commented Jan 9, 2017

I think it should either deprecate to real(z) == 0 or wait until #19950 merges.

@ararslan ararslan mentioned this pull request Jan 10, 2017
@deprecate getindex(t::Tuple, b::AbstractArray{Bool}) getindex(t, vec(b))

# Deprecate isimag (#19947).
@deprecate isimag(z::Number) Base.iszero(real(z))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The Base. prefix may now be dropped, as #19950 has merged. 🙂

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The Base. prefix may now be dropped, as #19950 has merged. 🙂

Cheers! Rebased dropping the qualification. Thanks!

@Sacha0 Sacha0 added this to the 0.6.0 milestone Jan 10, 2017
@ararslan
Copy link
Copy Markdown
Member

Good to merge?

@StefanKarpinski StefanKarpinski merged commit d357955 into JuliaLang:master Jan 12, 2017
@Sacha0 Sacha0 deleted the depisimag branch January 12, 2017 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecation This change introduces or involves a deprecation maths Mathematical functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants