Skip to content

Commit

Permalink
change mul!. for .*= as it is not defined for these types
Browse files Browse the repository at this point in the history
  • Loading branch information
HDictus committed Jul 3, 2019
1 parent 3a3b99f commit 09e8ed2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dspbase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ end
Transform the smaller convolution input to frequency domain, and return it in a
new array. However, the contents of `buff` may be modified.
"""
@inline function os_filter_transform!(buff, A::NTuple{<:Any, AbstractArray{<:Real}}, p)
@inline function os_filter_transform!(A::NTuple{<:Any, AbstractArray{<:Real}}, p)
fA = p * A[1]
for a in A[2:end]
mul!.(fA, (p * a))
fA .*= (p * a)
end
return fA
end
Expand All @@ -299,7 +299,7 @@ end
@inline function os_filter_transform!(A::NTuple{<:Any, AbstractArray{<:Complex}}, p!)
fA = p! * A[1]
for a in A[2:end]
mul!.(fA, (p! * a))
fA .*= (p! * a)
end
return copy(fA)
end
Expand Down

0 comments on commit 09e8ed2

Please sign in to comment.