You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering if we should also re-write the way we construct the normal operator depending on whether we want to use a Toeplitz Operator or not. Unfortunately, the function
Type instabilities are not always evil and actually it is a feature of Julia that you can mix dynamic and static code. In this particular case I don't think that it will be an issue. The question is what happens with the return type of normalOperator. If you pass it to a solver the code within the solver will be fast because there was a function barrier.
Basically a reconstruction chain on a high-level will always be dynamic, i.e. the operator types being constructed will depend on the input parameters (e.g. non equidistant sampling points -> NFFT, otherwise -> FFT). One the operators a constructed all low-level code should be fast.
The danger is if one has type-unstable structs and passes them from high to low level.
I am wondering if we should also re-write the way we construct the normal operator depending on whether we want to use a Toeplitz Operator or not. Unfortunately, the function
MRIReco.jl/src/Operators/NFFTOp.jl
Lines 105 to 111 in 355a5c8
is not type stable:
Any ideas on how we could do this?
The text was updated successfully, but these errors were encountered: