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

Enable pattern matching which compares explicit index or object names #265

Open
kpeeters opened this issue Dec 1, 2022 · 0 comments
Open
Labels
enhancement Not strictly a bug but more of a feature enhancement request

Comments

@kpeeters
Copy link
Owner

kpeeters commented Dec 1, 2022

See https://cadabra.science/qa/2362/pattern-matching-noncommuting-expressions-matrices-indices : it would be useful to have a substitute conditional which lexicographically compares index or generic object names. So that you can write

substitute(ex, $\gamma^{a?} \gamma^{b?} | a? < b? -> \gamma^{b?}\gamma^{a?} + 2\eta^{a? b?}$);
@kpeeters kpeeters added the enhancement Not strictly a bug but more of a feature enhancement request label Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Not strictly a bug but more of a feature enhancement request
Projects
None yet
Development

No branches or pull requests

1 participant