Skip to content

Commit ee1f930

Browse files
committed
fix rebase glitches
1 parent ea2476a commit ee1f930

File tree

3 files changed

+10
-82
lines changed

3 files changed

+10
-82
lines changed

base/broadcast.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export broadcast_getindex, broadcast_setindex!
1010

1111
## Broadcasting utilities ##
1212

13-
# fallback for some special cases
13+
# fallbacks for some special cases
14+
@inline broadcast(f, x::Number...) = f(x...)
1415
@inline broadcast{N}(f, t::NTuple{N}, ts::Vararg{NTuple{N}}) = map(f, t, ts...)
1516
@inline broadcast(f, As::AbstractArray...) = broadcast_t(f, promote_eltype_op(f, As...), As...)
1617

base/docs/helpdb/Base.jl

+8-76
Original file line numberDiff line numberDiff line change
@@ -989,21 +989,6 @@ Numerator of the rational representation of `x`.
989989
"""
990990
num
991991

992-
"""
993-
.<(x, y)
994-
995-
Element-wise less-than comparison operator.
996-
997-
```jldoctest
998-
julia> [1; 2; 3] .< [2; 1; 4]
999-
3-element BitArray{1}:
1000-
true
1001-
false
1002-
true
1003-
```
1004-
"""
1005-
Base.:(.<)
1006-
1007992
"""
1008993
UndefRefError()
1009994
@@ -1430,6 +1415,14 @@ isnull
14301415
14311416
Squared absolute value of `x`.
14321417
"""
1418+
abs2
1419+
1420+
"""
1421+
sizehint!(s, n)
1422+
1423+
Suggest that collection `s` reserve capacity for at least `n` elements. This can improve performance.
1424+
"""
1425+
sizehint!
14331426

14341427
"""
14351428
OutOfMemoryError()
@@ -2198,21 +2191,6 @@ Compute the minimum value of `A` over the singleton dimensions of `r`, and write
21982191
"""
21992192
minimum!
22002193

2201-
"""
2202-
.-(x, y)
2203-
2204-
Element-wise subtraction operator.
2205-
2206-
```jldoctest
2207-
julia> [4; 5; 6] .- [1; 2; 4]
2208-
3-element Array{Int64,1}:
2209-
3
2210-
3
2211-
2
2212-
```
2213-
"""
2214-
Base.:(.-)
2215-
22162194
"""
22172195
unsafe_trunc(T, x)
22182196
@@ -2403,52 +2381,6 @@ passing them as the second argument.
24032381
"""
24042382
countlines
24052383

2406-
"""
2407-
.\\(x, y)
2408-
2409-
Element-wise left division operator.
2410-
2411-
```jldoctest
2412-
julia> A = [1 2; 3 4]
2413-
2×2 Array{Int64,2}:
2414-
1 2
2415-
3 4
2416-
2417-
julia> A .\ [1 2]
2418-
2×2 Array{Float64,2}:
2419-
1.0 1.0
2420-
0.333333 0.5
2421-
```
2422-
2423-
```jldoctest
2424-
julia> A = [1 0; 0 -1];
2425-
2426-
julia> B = [0 1; 1 0];
2427-
2428-
julia> C = [A, B]
2429-
2-element Array{Array{Int64,2},1}:
2430-
[1 0; 0 -1]
2431-
[0 1; 1 0]
2432-
2433-
julia> x = [1; 0];
2434-
2435-
julia> y = [0; 1];
2436-
2437-
julia> D = [x, y]
2438-
2-element Array{Array{Int64,1},1}:
2439-
[1,0]
2440-
[0,1]
2441-
2442-
julia> C .\\ D
2443-
2-element Array{Array{Float64,1},1}:
2444-
[1.0,-0.0]
2445-
[1.0,0.0]
2446-
```
2447-
2448-
See also [`broadcast`](:func:`broadcast`).
2449-
"""
2450-
Base.:(.\)(x,y)
2451-
24522384
"""
24532385
```
24542386
*(x, y...)

base/sysimg.jl

-5
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ Symbol(x...) = Symbol(string(x...))
7070
# broadcast.jl, so that we can overload broadcast methods for
7171
# specific array types etc.
7272
# --Here, just define fallback routines for broadcasting with no arguments
73-
# or with scalars to just produce a scalar result:
7473
broadcast(f) = f()
75-
@inline broadcast(f, x::Number...) = f(x...)
7674

7775
# array structures
7876
include("abstractarray.jl")
@@ -306,9 +304,6 @@ include("client.jl")
306304
# misc useful functions & macros
307305
include("util.jl")
308306

309-
include("broadcast.jl")
310-
importall .Broadcast
311-
312307
# dense linear algebra
313308
include("linalg/linalg.jl")
314309
importall .LinAlg

0 commit comments

Comments
 (0)