[sage-devel] Re: Finite dimensional algebra generated by matrices

2022-06-14 Thread Yingdong Li
Dear Travis, Thanks so much for your advice! I'll try it later. Best wishes, Li Yingdong 在2022年6月13日星期一 UTC+8 08:35:50 写道: > Yes, you have. To better integrate it into Sage, I would expand the > existing functionality of FiniteDimensionalAlgebra (and ideally it would do > the basis and multip

[sage-devel] Re: Finite dimensional algebra generated by matrices

2022-06-12 Thread 'Travis Scrimshaw' via sage-devel
Yes, you have. To better integrate it into Sage, I would expand the existing functionality of FiniteDimensionalAlgebra (and ideally it would do the basis and multiplication table lazily) . This class would likely need some additional work to get it to do what you eventually want, but it would m

[sage-devel] Re: Finite dimensional algebra generated by matrices

2022-06-11 Thread Yingdong Li
Dear Travis, I think my code already has the function you mentioned(the function named "basis_of_algebra" is used to build a basis, and we can plug it in the "ideal" function to get the ideal we want, see line 53-139). I'm not sure whether I misunderstood your advice. Anyway, thanks for your ad

[sage-devel] Re: Finite dimensional algebra generated by matrices

2022-06-09 Thread 'Travis Scrimshaw' via sage-devel
One thing you could consider doing is adding an option for the input of the finite dimensional algebra code to take the generators as input and then use that to generate a basis and feed that back into the finite dimensional algebra. I am sure I have written code to compute a basis from a genera

[sage-devel] Re: Finite dimensional algebra generated by matrices

2022-05-26 Thread Yingdong Li
Dear all, I have put my code in GitHub(with some explanation of it) so that you can clearly see it. Here's a link of my code in GitHub(see the code called "Finite generated algebra as a ring") Dongulas/Dongulas: Config files for my GitHub profile.

[sage-devel] Re: Finite dimensional algebra generated by matrices

2022-05-17 Thread Yingdong Li
Dear Travis, Thanks for your advice! The finite dimensional algebra code in Sage need a multiplication table, so the second part of our code is used to find the multiplication table with the basis of the algebra. And the first part of our code is used to find the basis with the generators of th

[sage-devel] Re: Finite dimensional algebra generated by matrices

2022-05-14 Thread 'Travis Scrimshaw' via sage-devel
I would advise against having it as an external package if you plan to integrate it into Sage. It further fragments the code and makes it more likely to bitrot from what I have seen. I would instead create a ticket and upload the code to that. Is this a finite dimensional commutative algebra? W

[sage-devel] Re: Finite dimensional algebra generated by matrices

2022-05-12 Thread davida...@gmail.com
Hello, Most of the SageMath developpment is explained in this guide: https://doc.sagemath.org/html/en/developer/index.html Also, I don't know exactly what is the scale of your code, but I would advise you to first upload your code to Github (if it isn't already done) as an external packa