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

View strings differ from GAP #41

Open
zickgraf opened this issue Feb 13, 2024 · 3 comments
Open

View strings differ from GAP #41

zickgraf opened this issue Feb 13, 2024 · 3 comments

Comments

@zickgraf
Copy link
Member

Compare

gap> HomalgMatrix( [ 1, 0, 0, 0,  0, 1, 0, -1, -1, 0, 2, 1 ], 3, 4, HomalgFieldOfRationals( ) );
<A 3 x 4 matrix over an internal ring>

to

julia> HomalgMatrix( [ 1, 0, 0, 0,  0, 1, 0, -1, -1, 0, 2, 1 ], 3, 4, HomalgFieldOfRationals( ) )
[ 1//1   0//1   0//1    0//1]
[ 0//1   1//1   0//1   -1//1]
[-1//1   0//1   2//1    1//1]
@zickgraf
Copy link
Member Author

This problem does not only appear for matrices but also for rings:

gap> HomalgRingOfIntegers();
Z
gap> HomalgFieldOfRationals();
Q

vs

julia> HomalgRingOfIntegers()
Integers

julia> HomalgFieldOfRationals()
Rationals

@zickgraf
Copy link
Member Author

Display strings also differ:

gap> Display(HomalgZeroMatrix(0,1,HomalgFieldOfRationals()));
(an empty 0 x 1 matrix)
gap> Display(HomalgZeroMatrix(10,1,HomalgFieldOfRationals()));
[ [  0 ],
  [  0 ],
  [  0 ],
  [  0 ],
  [  0 ],
  [  0 ],
  [  0 ],
  [  0 ],
  [  0 ],
  [  0 ] ]

vs

julia> display(HomalgZeroMatrix(0,1,HomalgFieldOfRationals()))
0 by 1 empty matrix

julia> display(HomalgZeroMatrix(10,1,HomalgFieldOfRationals()))
[0//1]
[0//1]
[0//1]
[0//1]
[0//1]
[0//1]
[0//1]
[0//1]
[0//1]
[0//1]

@zickgraf
Copy link
Member Author

After excluding all tests in LinearAlgebraForCAP which rely on the above strings, sadly no tests remain :( Hence, in the current form, MatricesForHomalg.jl is not really usable as a drop-in replacement of the GAP package MatricesForHomalg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant