Skip to content

Bug: correct L21/L21_plus_L1 for complex valued inputs - #257

Merged
mrava87 merged 2 commits into
PyLops:devfrom
mrava87:fix-l21complex
Aug 12, 2026
Merged

Bug: correct L21/L21_plus_L1 for complex valued inputs#257
mrava87 merged 2 commits into
PyLops:devfrom
mrava87:fix-l21complex

Conversation

@mrava87

@mrava87 mrava87 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

This PR fixes a bug in L21/L21_plus_L1 when complex valued numbers are used. Instead of doing abs(x)2, both operators used to have x2 (which gives same results for real valued x but not for complex valued x)

@mrava87 mrava87 self-assigned this Aug 11, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@mrava87 mrava87 changed the title Bug: correct L21 for complex valued inputs Bug: correct L21/L21_plus_L1 for complex valued inputs Aug 12, 2026
@mrava87
mrava87 merged commit 8c9ecf0 into PyLops:dev Aug 12, 2026
18 checks passed
@mrava87
mrava87 deleted the fix-l21complex branch August 12, 2026 19:40
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

Successfully merging this pull request may close these issues.

1 participant