Skip to content

Commit 7fec43c

Browse files
committed
Fix tmp array type for DCT and DST operator
1 parent fb5f872 commit 7fec43c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/LinearOperatorFFTWExt/DCTOp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ returns a `DCTOpImpl <: AbstractLinearOperator` which performs a DCT on a given
3434
"""
3535
function LinearOperatorCollection.DCTOp(T::Type; shape::Tuple, dcttype=2)
3636

37-
tmp=Array{Complex{real(T)}}(undef, shape)
37+
tmp=Array{T}(undef, shape)
3838
if dcttype == 2
3939
plan = plan_dct!(tmp)
4040
iplan = plan_idct!(tmp)

ext/LinearOperatorFFTWExt/DSTOp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ returns a `LinearOperator` which performs a DST on a given input array.
3232
* `shape::Tuple` - size of the array to transform
3333
"""
3434
function LinearOperatorCollection.DSTOp(T::Type; shape::Tuple)
35-
tmp=Array{Complex{real(T)}}(undef, shape)
35+
tmp=Array{T}(undef, shape)
3636

3737
plan = FFTW.plan_r2r!(tmp,FFTW.RODFT10)
3838
iplan = FFTW.plan_r2r!(tmp,FFTW.RODFT01)

0 commit comments

Comments
 (0)