Open Newtech66 opened 4 months ago
Please edit the "Steps to Reproduce". (I get an error: NameError: name 'IndexedFreeMonoid' is not defined
.) I think you need another line at the start:
from sage.monoids.indexed_free_monoid import IndexedFreeMonoid
Please edit the "Steps to Reproduce". (I get an error:
NameError: name 'IndexedFreeMonoid' is not defined
.) I think you need another line at the start:from sage.monoids.indexed_free_monoid import IndexedFreeMonoid
Corrected.
This is not a bug but a feature. This is done for speed reasons. It would be nice to have some checking, but we don't want to lose speed in internal code as this can be done in tight loops (e.g., algebra multiplication).
Steps To Reproduce
Expected Behavior
It should fail if I try to construct an element with an index not in the index_set.
Actual Behavior
It says the element exists.
Additional Information
No response
Environment
Checklist