Closed
Description
It seems that kron
may not be inheriting the eltype
of component linear maps:
using FFTW: fft
using LinearMaps
M,N = 64, 32 # image size
T = ComplexF64
Ax = LinearMap(T, x -> fft(x), M, M)
Ay = LinearMap(T, x -> fft(x), N, N)
Ak = kron(Ay, Ax) # has wrong eltype (non-complex)
Ak * rand(T, M*N) # fails with MethodError, perhaps due to type issue?
I was working on a suggestion for #183 when I hit this issue.
Metadata
Metadata
Assignees
Labels
No labels