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

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?}$);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant