Skip to content

Commit

Permalink
fix complex scalar * array
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Oct 19, 2020
1 parent 9bf2738 commit 540c127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rulesets/Base/arraymath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function rrule(::typeof(*), A::Number, B::AbstractArray{<:Number})
@thunk(dot(Ȳ, B)'),
InplaceableThunk(
@thunk(A' * Ȳ),
-> mul!(X̄, A, Ȳ, true, true)
-> mul!(X̄, conj(A), Ȳ, true, true)
)
)
end
Expand All @@ -56,7 +56,7 @@ function rrule(::typeof(*), B::AbstractArray{<:Number}, A::Number)
NO_FIELDS,
InplaceableThunk(
@thunk(A' * Ȳ),
-> mul!(X̄, A, Ȳ, true, true)
-> mul!(X̄, conj(A), Ȳ, true, true)
),
@thunk(dot(Ȳ, B)'),
)
Expand Down

0 comments on commit 540c127

Please sign in to comment.