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

Memory allocation in identity_matrix (more generally, diagonal_matrix) #26

Open
a-kulkarn opened this issue Jan 27, 2022 · 3 comments
Open

Comments

@a-kulkarn
Copy link

using Oscar
Qp = PadicField()
I = identity_matrix(QQ, 5)
I[1,1] === I[2,2] # evaluates to false

Ip = identity_matrix(Qp, 5)
Ip[1,1] === Ip[2,2] # evaluates to true

I think the abstract type implementation for identity_matrix might need a deepcopy, or a note in the documentation.

@wbhart
Copy link
Owner

wbhart commented Jan 27, 2022

The official repository is here:

https://github.com/Nemocas/AbstractAlgebra.jl/

@a-kulkarn
Copy link
Author

a-kulkarn commented Jan 27, 2022 via email

@wbhart
Copy link
Owner

wbhart commented Jan 27, 2022

Sure. But you might want to discuss the behaviour there first. I'm not sure anyone thinks that is broken.

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

2 participants