Skip to content

Commit

Permalink
tighten signature of (complex mat) x (real matorvec) (#33843)
Browse files Browse the repository at this point in the history
(cherry picked from commit 833b11a)
  • Loading branch information
dkarrasch authored and KristofferC committed Nov 15, 2019
1 parent d8b09b5 commit f6e4cd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/LinearAlgebra/src/matmul.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ end
for elty in (Float32,Float64)
@eval begin
@inline function mul!(y::StridedVector{Complex{$elty}}, A::StridedVecOrMat{Complex{$elty}}, x::StridedVector{$elty},
alpha::Number, beta::Number)
alpha::Real, beta::Real)
Afl = reinterpret($elty, A)
yfl = reinterpret($elty, y)
mul!(yfl, Afl, x, alpha, beta)
Expand Down Expand Up @@ -319,7 +319,7 @@ end
for elty in (Float32,Float64)
@eval begin
@inline function mul!(C::StridedMatrix{Complex{$elty}}, A::StridedVecOrMat{Complex{$elty}}, transB::Transpose{<:Any,<:StridedVecOrMat{$elty}},
alpha::Number, beta::Number)
alpha::Real, beta::Real)
Afl = reinterpret($elty, A)
Cfl = reinterpret($elty, C)
mul!(Cfl, Afl, transB, alpha, beta)
Expand Down

0 comments on commit f6e4cd8

Please sign in to comment.