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

I want to compare the elements of the array of two variables and use the larger value as the new variable. #60

Open
HIROJAPAN opened this issue Jun 16, 2021 · 2 comments

Comments

@HIROJAPAN
Copy link

Is it possible to apply two convolution filters to the variable X, compare the elements of the two arrays, and choose the larger value? And can ProximaL solve the problem?

@antonysigma
Copy link
Collaborator

antonysigma commented Sep 29, 2022

If I understand your question, are you trying to compute the "L_p,q norm" of the signal?

Image a = conv(A, x)
Image b = conv(B, x)

Problem = group_norm(vstack(reshape_to_row_vector(a), reshape_to_row_vector(b)), p = 'Infinity', q = 2).

Yes you can express this problem with ProxImaL, but you will have to implement your own proximal function for L_p,q. Also, deferring to @SteveDiamond regarding the convexity of such problem.

For general convex optimization problems, I also suggest you post the questions on https://github.com/cvxpy/cvxpy . They have a larger community.

@SteveDiamond
Copy link
Contributor

This could also be implemented as an elementwise maximum of a and b. This is convex and would be pretty easy to add.

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

3 participants