-
-
Notifications
You must be signed in to change notification settings - Fork 602
convert between two implementations of fin-dim algebras #39970
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
base: develop
Are you sure you want to change the base?
Conversation
Documentation preview for this PR (built with commit 2f11478; changes) is ready! 🎉 |
src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra.py
Outdated
Show resolved
Hide resolved
src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra.py
Outdated
Show resolved
Hide resolved
src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra.py
Outdated
Show resolved
Hide resolved
src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra.py
Show resolved
Hide resolved
This provides functionality for converting between two implementations of finite-dimensional algebras: - the modern one, implemented as MagmaticAlgebras.WithBasis.FiniteDimensional in sage.categories.magmatic_algebras (in the magmatic case) and as FiniteDimensionalAlgebrasWithBasis in sage.categories.finite_dimensional_algebras_with_basis (in the assocative case), and - the old one, implemented as FiniteDimensionalAlgebra in sage.algebras.finite_dimensional_algebras.finite_dimensional_algebra. To be more precise, the latter now automatically inherits from the former if the optional parameters assume_associative and assume_unital are set to True, whereas the former can be converted into the latter via the to_finite_dimensional_algebra method. This way, the methods of one (e.g. ``center_basis`` on the modern one or ``is_unitary`` on the old one) can be used on the other. Fixing various other issues in both classes as well.
…ic) linear algebra operations.
I made a few changes:
Since I made these online, I didn't check that they actually worked; will wait for the bots. |
Good edits, Travis! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you!
This provides functionality for converting between two implementations of finite-dimensional algebras:
This way, the methods of one (e.g.
center_basis
on the modern one oris_unitary
on the old one) can be used on the other.I hope they actually work, though -- hard to tell without having a contract for the modern class...