Skip to content

Commit 4482296

Browse files
committed
Revert "fill special cases"
This reverts commit 75902b3.
1 parent 75902b3 commit 4482296

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/mul.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ macro layoutmul(Typ)
182182
Base.:*(A::AbstractMatrix, B::$Typ) = ArrayLayouts.mul(A,B)
183183
Base.:*(A::LinearAlgebra.AdjointAbsVec, B::$Typ) = ArrayLayouts.mul(A,B)
184184
Base.:*(A::LinearAlgebra.TransposeAbsVec, B::$Typ) = ArrayLayouts.mul(A,B)
185-
Base.:*(A::LinearAlgebra.AdjointAbsVec{<:Any,<:Zeros{<:Any,1}}, B::$Typ) = ArrayLayouts.mul(A,B)
186-
Base.:*(A::LinearAlgebra.TransposeAbsVec{<:Any,<:Zeros{<:Any,1}}, B::$Typ) = ArrayLayouts.mul(A,B)
187185

188186
Base.:*(A::LinearAlgebra.AbstractQ, B::$Typ) = ArrayLayouts.mul(A,B)
189187
Base.:*(A::$Typ, B::LinearAlgebra.AbstractQ) = ArrayLayouts.mul(A,B)
@@ -226,7 +224,6 @@ macro layoutmul(Typ)
226224
Base.:*(A::LinearAlgebra.TransposeAbsVec, B::$Mod{<:Any,<:$Typ}) = ArrayLayouts.mul(A,B)
227225
Base.:*(A::$Mod{<:Any,<:$Typ}, B::AbstractVector) = ArrayLayouts.mul(A,B)
228226
Base.:*(A::$Mod{<:Any,<:$Typ}, B::ArrayLayouts.LayoutVector) = ArrayLayouts.mul(A,B)
229-
Base.:*(A::$Mod{<:Any,<:$Typ}, B::Zeros{<:Any,1}) = ArrayLayouts.mul(A,B)
230227

231228
Base.:*(A::$Mod{<:Any,<:$Typ}, B::$Typ) = ArrayLayouts.mul(A,B)
232229
Base.:*(A::$Typ, B::$Mod{<:Any,<:$Typ}) = ArrayLayouts.mul(A,B)
@@ -270,8 +267,6 @@ dot(a, b) = materialize(Dot(a, b))
270267
@inline LinearAlgebra.dot(a::LayoutArray, b::LayoutArray) = dot(a,b)
271268
@inline LinearAlgebra.dot(a::LayoutArray, b::AbstractArray) = dot(a,b)
272269
@inline LinearAlgebra.dot(a::AbstractArray, b::LayoutArray) = dot(a,b)
273-
@inline LinearAlgebra.dot(a::LayoutVector, b::AbstractFill{<:Any,1}) = FillArrays._fill_dot(a,b)
274-
@inline LinearAlgebra.dot(a::AbstractFill{<:Any,1}, b::LayoutVector) = FillArrays._fill_dot(a,b)
275270
@inline LinearAlgebra.dot(a::LayoutArray{<:Number}, b::SparseArrays.SparseVectorUnion{<:Number}) = dot(a,b)
276271
@inline LinearAlgebra.dot(a::SparseArrays.SparseVectorUnion{<:Number}, b::LayoutArray{<:Number}) = dot(a,b)
277272

src/muladd.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,4 @@ function similar(M::MulAdd{<:Any,<:DualLayout,ZerosLayout}, ::Type{T}, (x,y)) wh
412412
@assert length(x) == 1
413413
trans = transtype(M.B)
414414
trans(similar(trans(M.B), T, y))
415-
end
416-
417-
const ZerosLayouts = Union{ZerosLayout,DualLayout{ZerosLayout}}
418-
copy(M::MulAdd{<:ZerosLayouts, <:ZerosLayouts, <:ZerosLayouts}) = M.C
419-
copy(M::MulAdd{<:ZerosLayouts, <:Any, <:ZerosLayouts}) = M.C
420-
copy(M::MulAdd{<:Any, <:ZerosLayouts, <:ZerosLayouts}) = M.C
415+
end

0 commit comments

Comments
 (0)