Skip to content

Commit 675c863

Browse files
committed
Delete a few unused Product definitions.
1 parent 42d40a6 commit 675c863

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LoopVectorization"
22
uuid = "bdcacae8-1622-11e9-2a5c-532679323890"
33
authors = ["Chris Elrod <[email protected]>"]
4-
version = "0.8.23"
4+
version = "0.8.24"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"

src/broadcast.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ end
66
M = @inbounds size(p.a)[1]
77
(M, Base.tail(size(p.b))...)
88
end
9-
@inline function Base.size(p::Product, i::Integer)
10-
i == 1 && return @inbounds size(p.a)[1]
11-
@inbounds size(p.b)[i]
12-
end
13-
@inline Base.length(p::Product) = prod(size(p))
14-
@inline Base.broadcastable(p::Product) = p
9+
# @inline function Base.size(p::Product, i::Integer)
10+
# i == 1 && return @inbounds size(p.a)[1]
11+
# @inbounds size(p.b)[i]
12+
# end
13+
# @inline Base.length(p::Product) = prod(size(p))
14+
# @inline Base.broadcastable(p::Product) = p
1515
@inline numdims(A) = ndims(A) # fallback
16-
@inline numdims(::Type{Product{A,B}}) where {A,B} = numdims(B)
17-
@inline Base.ndims(::Type{Product{A,B}}) where {A,B} = numdims(B)
16+
# @inline numdims(::Type{Product{A,B}}) where {A,B} = numdims(B)
17+
# @inline Base.ndims(::Type{Product{A,B}}) where {A,B} = numdims(B)
1818
# This numdims nonsense is a hack to avoid type piracy in defining:
1919
@inline numdims(::Type{B}) where {N, S <: Base.Broadcast.AbstractArrayStyle{N}, B <: Base.Broadcast.Broadcasted{S}} = N
2020

0 commit comments

Comments
 (0)