Backport bswap method for complex numbers.#346
Conversation
It was added to julia in PR21346, commit b7836db4.
README.md
Outdated
|
|
||
| * `unsafe_trunc(::Type{<:Integer}, ::Integer)` is supported on 0.5. ([#18629]) | ||
|
|
||
| * `bswap` is supported for `Complex` arguments. ([#21346]) |
There was a problem hiding this comment.
maybe add "on 0.5 and earlier"?
There was a problem hiding this comment.
Since Compat now requires julia 0.4, I feel (but not very strongly) that specifying this is redundant.
There was a problem hiding this comment.
Ok, I have integrated @TotalVerb's suggestion.
There was a problem hiding this comment.
The reason for this is that some features are available only on 0.5, and not on 0.4 (see a good chunk of the broadcast stuff), so we should be clear that this works on both.
There was a problem hiding this comment.
I think that the default should be that every Compat feature is supported on every Julia version indicated by the REQUIRES file (i.e. v0.4+ currently). A note should only be necessary when a given feature is not supported in 0.4.
* `zeros` and `ones` with interface of `similar` (from #330) * `convert` between `Set` types (from #342) * `isassigned(::RefValue)` (from #345) * `unsafe_trunc(::Type{<:Integer}, ::Integer)` (from #344) * `bswap` for complex numbers (from #346) * Compat.StringVector (from #348) * `invokelatest` (from #352 and #359) * Misc. pre-0.6-only code * obsolete README enries
It was added to julia in PR#21346, commit b7836db.
Originally I had this method in my own package FortranFiles.jl (which also supports julia 0.5), but because this defines a Base method for a Base datatype, @tkelman suggested it might go into Base, and if accepted there, also into Compat.