Skip to content

Commit 336dc4b

Browse files
committed
support for C \ (x .*2 .* A)
1 parent 2c07cf1 commit 336dc4b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/bases/bases.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ end
119119
A \ ab
120120
end
121121

122+
@inline function _broadcast_mul_ldiv(::Tuple{Any,ApplyLayout{typeof(*)}}, A, B)
123+
a,b = arguments(B)
124+
@assert a isa AbstractQuasiVector # Only works for vec .* mat
125+
args = arguments(ApplyLayout{typeof(*)}(), b)
126+
*(A \ (a .* first(args)), tail(args)...)
127+
end
128+
129+
122130
function _broadcast_mul_ldiv(::Tuple{ScalarLayout,Any}, A, B)
123131
a,b = arguments(B)
124132
a * (A \ b)

0 commit comments

Comments
 (0)