Skip to content

Commit

Permalink
Update mul.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Aug 6, 2024
1 parent 9655560 commit 8c0d815
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/linalg/mul.jl
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ transtype(A::MulMatrix) = transtype(first(A.args))
@inline simplifiable(M::Mul{<:DiagonalLayout{<:AbstractFillLayout},<:DiagonalLayout{<:AbstractFillLayout}}) = Val(true)
@inline simplifiable(::Mul{<:DiagonalLayout{<:OnesLayout}, <:DiagonalLayout{<:OnesLayout}}) = Val(true) # ambiguity

Check warning on line 376 in src/linalg/mul.jl

View check run for this annotation

Codecov / codecov/patch

src/linalg/mul.jl#L376

Added line #L376 was not covered by tests
@inline simplifiable(M::Mul{<:Any,<:DiagonalLayout{<:AbstractFillLayout}}) = Val(true)
@inline simplifiable(M::Mul{<:Union{AbstractStridedLayout,DualLayout{<:AbstractStridedLayout}}, <:DiagonalLayout{<:AbstractFillLayout}}) = Val(true)

Check warning on line 378 in src/linalg/mul.jl

View check run for this annotation

Codecov / codecov/patch

src/linalg/mul.jl#L378

Added line #L378 was not covered by tests
@inline copy(M::Mul{<:DiagonalLayout{<:AbstractFillLayout},<:LazyLayouts}) = copy(mulreduce(M))
@inline copy(M::Mul{<:LazyLayouts,<:DiagonalLayout{<:AbstractFillLayout}}) = copy(mulreduce(M))
@inline copy(M::Mul{BroadcastLayout{typeof(*)},<:DiagonalLayout{<:AbstractFillLayout}}) = copy(mulreduce(M))
Expand Down

0 comments on commit 8c0d815

Please sign in to comment.