Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #28566: improve conversions between Macaulay2 and Sage
This ticket implements and improves conversions between Macaulay2 and Sage: • vectors/free module elements • matrices: The function `InterfaceElement._matrix_()` is implemented to allow for this syntax: {{{ sage: A = macaulay2('matrix {{1,2},{3,4}}') sage: matrix(QQ, A) [1 2] [3 4] }}} This ticket also fixes an issue where the elements are not promoted to the correct ring: {{{ sage: R.<x,y> = QQ[] sage: m = macaulay2(matrix(R, [[1, 2], [3, 4]])) sage: m.ring() # should be R ZZ }}} • finite fields: An issue is fixed where the generator names are not preserved: {{{ sage: K = GF(49, 'b') sage: K.gens(), macaulay2(K).gens() # should be the same ((b,), {a}) }}} URL: https://trac.sagemath.org/28566 Reported by: gh-mwageringel Ticket author(s): Markus Wageringel Reviewer(s): Franco Saliola
- Loading branch information
Showing
4 changed files
with
92 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters