-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type issue with kron
#185
Comments
The using FFTW: fft
using LinearMaps
M,N = 64, 32 # image size
T = ComplexF64
Ax = LinearMap{T}(fft, M, M)
Ay = LinearMap{T}(fft, N, N)
Ak = kron(Ay, Ax) # has wrong eltype (non-complex)
Ak * rand(T, M*N) # fails with MethodError, perhaps due to type issue? |
Oh gosh, I am so used to seeing But I am surprised that I realize that a type actually is a kind of function, cf, |
It seems that
kron
may not be inheriting theeltype
of component linear maps:I was working on a suggestion for #183 when I hit this issue.
The text was updated successfully, but these errors were encountered: