Skip to content
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 for proxL1 #39

Closed
aTrotier opened this issue May 6, 2022 · 3 comments
Closed

Type issue for proxL1 #39

aTrotier opened this issue May 6, 2022 · 3 comments

Comments

@aTrotier
Copy link

aTrotier commented May 6, 2022

function proxL1!(x::AbstractArray{Tc}, λ::T; sparseTrafo::Trafo=nothing, kargs...) where {T, Tc <: Union{T, Complex{T}}}

λ::T should be λ::Float64 ?

issue related to : MagneticResonanceImaging/MRIReco.jl#78

@migrosser
Copy link
Collaborator

The restriction Tc <: Union{T, Complex{T}} actually makes a lot of sense because it avoids having to perform type-conversions when the element-type of x and λ don't match.
However, I agree that it would be better if one didn't have to worry about this issue when performing high-level reconstruction, e.g. in MRIReco.
A possible solution would be to update our factory method for building Regularization-objects, such that the type of the underlying data is taken into account. Potentially, one could even parametrize the type Regularization correspondingly. What do you think @tknopp ?

@aTrotier
Copy link
Author

aTrotier commented May 9, 2022 via email

@aTrotier
Copy link
Author

aTrotier commented Oct 3, 2022

closed by commit : MagneticResonanceImaging/MRIReco.jl@b84a9ee

@aTrotier aTrotier closed this as completed Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants