Skip to content

Memory allocation in diagonal_matrix #1108

@a-kulkarn

Description

@a-kulkarn

Hello AbstractAlgebra folks,

Is this intended behaviour?

using Nemo

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

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

If so, I think it might be nice to make a note of this peculiarity in the documentation. In either case, I'm happy to follow this up with a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions