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

refactor[next]: neg builtin for unary minus #1819

Merged
merged 10 commits into from
Jan 27, 2025

Conversation

SF-N
Copy link
Contributor

@SF-N SF-N commented Jan 23, 2025

Add neg builtin to GTIR and use it for unary minus, e.g. -val, instead of 0-val as before.

@SF-N SF-N requested a review from tehrengruber January 23, 2025 09:49
src/gt4py/next/ffront/fbuiltins.py Outdated Show resolved Hide resolved
src/gt4py/next/iterator/builtins.py Outdated Show resolved Hide resolved
src/gt4py/next/iterator/embedded.py Outdated Show resolved Hide resolved
src/gt4py/next/program_processors/codegens/gtfn/codegen.py Outdated Show resolved Hide resolved
@SF-N SF-N requested a review from tehrengruber January 23, 2025 11:37
@tehrengruber tehrengruber changed the title feat[next]: neg builtin for unary minus refactor[next]: neg builtin for unary minus Jan 27, 2025
@tehrengruber tehrengruber merged commit e378877 into GridTools:main Jan 27, 2025
21 checks passed
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.

2 participants