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

Backports for 0.6.1 #23670

Merged
merged 88 commits into from
Oct 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
88fa433
redesign type inference outer loop (PR #21677)
jrevels May 15, 2017
e4dc00c
various improvements to parser (#22161)
JeffBezanson Jun 5, 2017
d02d734
better static printing of typemap entries
vtjnash May 5, 2017
c1fe105
Fix reuse of client port on Linux. Implement for OSX.
amitmurthy May 11, 2017
a50154e
fix listenany to return correct port number for porthint of 0
amitmurthy May 19, 2017
152f814
added NEWS entry
amitmurthy May 19, 2017
8b3ec35
Fixed relative path include on remote machines
Gollor May 13, 2017
4aa8d72
Method overwriting by an ambiguity should also invalidate the method …
vtjnash May 19, 2017
b8cf285
Return socket correctly in socket_reuse_port (#22017)
amitmurthy May 22, 2017
718828b
Add necessary LLVM patches
Keno May 19, 2017
acba61a
fix extrema(A,dim) when length(dim)>1
bjarthur May 29, 2017
29cc5b0
fix base(b, big(0), 0) == "0"
rfourquet May 30, 2017
3e6545e
prevent Docs.apropos from breaking on random stuff interpolated into …
vtjnash May 30, 2017
ca44bb3
add some doctest to test (#22287)
KristofferC Jun 26, 2017
9e76e65
add a few doctests to broadcast, parse, intfuncs, number and permuted…
KristofferC Jun 25, 2017
34e485c
Extend definition of StridedReshapedArray (#22429)
mtfishman Jun 29, 2017
2389523
update docs for sysimg to show that default_sysimg_path is a function…
KristofferC Jun 24, 2017
96ddec8
add missing method for eigvecs(A::HermOrSym) (#22453)
fredrikekre Jun 21, 2017
464079a
fix homedir error handling for 1020+ character usernames
vtjnash Jun 21, 2017
e205c0f
optimize repeat(string, n) for repeating single ASCII chars (#22462)
stevengj Jun 24, 2017
21dcfec
fix matrix multiplication interaction with HermOrSym and Diagonal (#2…
fredrikekre Jun 24, 2017
cdb5335
document Upper/LowerTriangular
fredrikekre Jun 24, 2017
7bbc17c
More doctests and cleanup for intfuncs (#22515)
kshyatt Jun 27, 2017
8ff738e
I love # Example
kshyatt Jun 25, 2017
2a1b86e
test elementwise leftshift on BigInt by vector of ints (#22524)
KristofferC Jun 25, 2017
60c1351
fix not using type in argument list
KristofferC Jun 25, 2017
5ac4706
use where syntax in deprecated.jl (#22527)
fredrikekre Jun 26, 2017
50c3588
add test for filtering empty iterator (#22528)
KristofferC Jun 25, 2017
e8ed712
test fixed inlining bug #18735 (#22530)
KristofferC Jun 25, 2017
7883190
document SparseVector and SparseMatrixCSC (#22541)
fredrikekre Jul 4, 2017
b51fce7
fix bug in HTML showing of method table of function with parameters
JeffBezanson Jun 28, 2017
eb8cbce
fix #22624, crash in certain circular type definitions
JeffBezanson Jun 30, 2017
7da0638
speed up common cases of type application. helps #22593
JeffBezanson Jun 30, 2017
bb81ca3
Handle 32 bit architecture when creating float ranges
Jun 30, 2017
585f387
Add efficient hashing of CartesianIndex objects
annimesh2809 Jul 3, 2017
875bfce
small improvements to (de)serialize perf. helps #22593
JeffBezanson Jul 2, 2017
656813d
fix bug in serialization of nested anonymous functions across process…
amitmurthy Jul 7, 2017
46e68a9
simplified a test
stevengj Jul 6, 2017
b2feda0
fix graphemes eltype for substrings (fixes #22693)
stevengj Jul 6, 2017
015cf6d
fix and simplify subtyping rule for `x <: Type{T}`
JeffBezanson Jul 7, 2017
48e850e
Remove extra JL_GC_POP in emit_a_ccall error path
yuyichao Jul 10, 2017
524ec4a
fix field types of Method type
JeffBezanson Jul 10, 2017
5496bb2
Fix repeat for arrays of arrays
pabloferz Jul 10, 2017
7347c57
look up constructors by type name in depwarn. fixes #21972
JeffBezanson Jul 11, 2017
a5d70fe
Make var(Range) type stable (#22778)
andreasnoack Jul 17, 2017
46e176d
fix `let` bound functions with `where` and return types
JeffBezanson Jul 14, 2017
fb082cc
Bugfix for zero matrix in A_ldiv_B! for QRPivoted (#22831)
GunnarFarneback Jul 17, 2017
20558e1
Base.ndigits0z(0, b) must return 0 (fix #22837)
rfourquet Jul 17, 2017
856e413
fix #22908, typemap ordering of `Union` vs. `Type{Union{...}}`.
JeffBezanson Jul 21, 2017
776be41
fix `tuple_type_head` and `tuple_type_tail` on `UnionAll`
JeffBezanson Jul 21, 2017
7994c64
fix codegen bug in `===` on two `SimpleVector`s
JeffBezanson Jul 25, 2017
c1cbc98
mark julia threads as initialized
vtjnash Jul 27, 2017
25d23e4
fix backedge restore list order in incremental serializer
JeffBezanson Jul 28, 2017
9db7fd9
suppress warning for redefining docstrings if the symbol is in Main (…
stevengj Jul 31, 2017
5961643
Add a test for #22582/#22022.
maleadt Jul 29, 2017
bd8ca63
Update deprecated tuple type call's in cfunction (#23046)
musm Aug 1, 2017
2a18f33
fix method lookup intersection error
vtjnash Jul 31, 2017
2548c22
inference: fix and improve instanceof_tfunc-based queries
vtjnash Jul 31, 2017
f01ad7f
remove mentioning of internal .typ field in Expr objects
fredrikekre Aug 1, 2017
9950d82
fix math in condskeel docstring (#23083)
fredrikekre Aug 7, 2017
b5adafb
fix #23091, function in LHS of destructuring assignment
JeffBezanson Aug 2, 2017
d79a2ef
Show in doc that thin is a keyword argument. (#23096)
mschauer Aug 2, 2017
9c5f8e3
symdiff! on IntSet: fix too permissive bounds checking (#23099)
rfourquet Aug 3, 2017
262de92
Fix typo: subsitution -> substitution. (#23141)
Aug 5, 2017
2f58077
Release a Future only after it has been fetched locally by sending a …
amitmurthy Aug 8, 2017
dcf7ff3
Fix style issues with manual METADATA publishing (#23184)
omus Aug 10, 2017
21ba42e
remove .jl extension in Pkg.update (#23214)
fredrikekre Aug 12, 2017
bd22138
fix #23218, lowering error in `(a,) = (b...,)` (#23242)
JeffBezanson Aug 14, 2017
dc83959
fix #23236 (#23243)
JeffBezanson Aug 14, 2017
01c61bb
fix #23234, parsing `function (x=0) ...` (#23258)
JeffBezanson Aug 15, 2017
2f64bb0
no longer warn in code_warntype for unused variables (#23280)
KristofferC Aug 21, 2017
17c4a24
add RowVectors to to list of types included in sparse concatinations …
KristofferC Aug 22, 2017
bb2a918
Fix eltype conversion for StepRangeLen{BigFloat} (fixes #23300)
timholy Aug 19, 2017
98158c1
Fix Schur Factorization for 0x0 matrices (#23360)
andreasnoack Aug 21, 2017
8e610d5
define Symbol(s::Symbol) = s for performance
rfourquet Aug 21, 2017
2780edb
fix #23430, counter overflow in subtyping
JeffBezanson Aug 25, 2017
1aea74e
fix bug in printing generator expressions with n-d ranges
JeffBezanson Aug 28, 2017
2fe7cb9
test-codegen: make jl_dump_compiles test more reliable (#23486)
vtjnash Aug 29, 2017
815a962
fix documentation for IOBuffer, close #23398 (#23514)
fredrikekre Aug 31, 2017
5b84769
fix #23558, bug in recursive let-bound functions
JeffBezanson Sep 2, 2017
2c2f577
Display STDOUT from Pkg.build
omus Sep 6, 2017
269db8e
Adjust capitalization in LibGit2 test to be version agnostic
ararslan Sep 16, 2017
7861fe8
Fix missing bounds checks for trailing zero dimensions (#23723)
mbauman Sep 18, 2017
65405cc
Move write_build to the outer scope
ararslan Sep 18, 2017
9b348ff
Add a small patch that allows us to generate code for PTX ISA 6.0.
maleadt Sep 22, 2017
44a6ad3
fix doctests for 0.6.1 (#23916)
fredrikekre Sep 30, 2017
1a1ef7a
Restore repeat preformance for arrays of scalars (#24022)
pabloferz Oct 6, 2017
f651277
Make print_matrix O(1) again (#23681)
iamed2 Sep 15, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ This section lists changes that do not have deprecation warnings.
* `homedir` now determines the user's home directory via `libuv`'s `uv_os_homedir`,
rather than from environment variables ([#19636]).

* Workers now listen on an ephemeral port assigned by the OS. Previously workers would
listen on the first free port available from 9009 ([#21818]).


Library improvements
--------------------

Expand Down
11 changes: 8 additions & 3 deletions base/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,10 @@ function checkbounds_indices(::Type{Bool}, IA::Tuple, I::Tuple{Any})
end
function checkbounds_linear_indices(::Type{Bool}, IA::Tuple{Vararg{OneTo}}, i)
@_inline_meta
if checkindex(Bool, IA[1], i)
ts = trailingsize(IA)
if checkindex(Bool, IA[1], i) && ts > 0
return true
elseif checkindex(Bool, OneTo(trailingsize(IA)), i) # partial linear indexing
elseif checkindex(Bool, OneTo(ts), i) # partial linear indexing
partial_linear_indexing_warning_lookup(length(IA))
return true # TODO: Return false after the above function is removed in deprecated.jl
end
Expand Down Expand Up @@ -801,7 +802,7 @@ A[iter] = 0

If you supply more than one `AbstractArray` argument, `eachindex` will create an
iterable object that is fast for all arguments (a `UnitRange`
if all inputs have fast linear indexing, a `CartesianRange`
if all inputs have fast linear indexing, a [`CartesianRange`](@ref)
otherwise).
If the arrays have different sizes and/or dimensionalities, `eachindex` returns an
iterable that spans the largest range along each dimension.
Expand Down Expand Up @@ -1718,6 +1719,7 @@ For multiple iterable arguments, `f` is called elementwise.
`foreach` should be used instead of `map` when the results of `f` are not
needed, for example in `foreach(println, array)`.

# Example
```jldoctest
julia> a = 1:3:7;

Expand Down Expand Up @@ -1745,6 +1747,7 @@ colons go in this expression. The results are concatenated along the remaining d
For example, if `dims` is `[1,2]` and `A` is 4-dimensional, `f` is called on `A[:,:,i,j]`
for all `i` and `j`.

# Examples
```jldoctest
julia> a = reshape(collect(1:16),(2,2,2,2))
2×2×2×2 Array{Int64,4}:
Expand Down Expand Up @@ -1871,6 +1874,7 @@ map(f, A::Union{AbstractArray,AbstractSet,Associative}) = collect_similar(A, Gen
Transform collection `c` by applying `f` to each element. For multiple collection arguments,
apply `f` elementwise.

# Examples
```jldoctest
julia> map(x -> x * 2, [1, 2, 3])
3-element Array{Int64,1}:
Expand Down Expand Up @@ -1913,6 +1917,7 @@ end
Like [`map`](@ref), but stores the result in `destination` rather than a new
collection. `destination` must be at least as large as the first collection.

# Example
```jldoctest
julia> x = zeros(3);

Expand Down
15 changes: 13 additions & 2 deletions base/abstractarraymath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Reshape the array `a` as a one-dimensional column vector. The resulting array
shares the same underlying data as `a`, so modifying one will also modify the
other.

# Example
```jldoctest
julia> a = [1 2 3; 4 5 6]
2×3 Array{Int64,2}:
Expand Down Expand Up @@ -48,6 +49,7 @@ Remove the dimensions specified by `dims` from array `A`.
Elements of `dims` must be unique and within the range `1:ndims(A)`.
`size(A,i)` must equal 1 for all `i` in `dims`.

# Example
```jldoctest
julia> a = reshape(collect(1:4),(2,2,1,1))
2×2×1×1 Array{Int64,4}:
Expand Down Expand Up @@ -101,6 +103,7 @@ imag(x::AbstractArray{<:Real}) = zero(x)
Return all the data of `A` where the index for dimension `d` equals `i`. Equivalent to
`A[:,:,...,i,:,:,...]` where `i` is in position `d`.

# Example
```jldoctest
julia> A = [1 2 3 4; 5 6 7 8]
2×4 Array{Int64,2}:
Expand All @@ -125,6 +128,7 @@ end

Reverse `A` in dimension `d`.

# Example
```jldoctest
julia> b = [1 2; 3 4]
2×2 Array{Int64,2}:
Expand Down Expand Up @@ -177,6 +181,7 @@ circshift(a::AbstractArray, shiftamt::DimsInteger) = circshift!(similar(a), a, s
Circularly shift the data in an array. The second argument is a vector giving the amount to
shift in each dimension.

# Example
```jldoctest
julia> b = reshape(collect(1:16), (4,4))
4×4 Array{Int64,2}:
Expand Down Expand Up @@ -281,6 +286,7 @@ end
Construct a matrix by repeating the given matrix (or vector) `m` times in dimension 1 and `n` times in
dimension 2.

# Examples
```jldoctest
julia> repmat([1, 2, 3], 2)
6-element Array{Int64,1}:
Expand Down Expand Up @@ -337,6 +343,7 @@ repeated. The i-th element of `outer` specifies the number of times that a slice
i-th dimension of `A` should be repeated. If `inner` or `outer` are omitted, no repetition
is performed.

# Examples
```jldoctest
julia> repeat(1:2, inner=2)
4-element Array{Int64,1}:
Expand Down Expand Up @@ -390,7 +397,11 @@ _rshps(shp, shp_i, sz, i, ::Tuple{}) =
_reperr(s, n, N) = throw(ArgumentError("number of " * s * " repetitions " *
"($n) cannot be less than number of dimensions of input ($N)"))

@propagate_inbounds function _repeat(A::AbstractArray, inner, outer)
# We need special handling when repeating arrays of arrays
cat_fill!(R, X, inds) = (R[inds...] = X)
cat_fill!(R, X::AbstractArray, inds) = fill!(view(R, inds...), X)

@noinline function _repeat(A::AbstractArray, inner, outer)
shape, inner_shape = rep_shapes(A, inner, outer)

R = similar(A, shape)
Expand All @@ -408,7 +419,7 @@ _reperr(s, n, N) = throw(ArgumentError("number of " * s * " repetitions " *
n = inner[i]
inner_indices[i] = (1:n) + ((c[i] - 1) * n)
end
R[inner_indices...] = A[c]
cat_fill!(R, A[c], inner_indices)
end
end

Expand Down
Loading