Skip to content

IsMonimialMatrix does not work for compressed matrices #3148

Closed
@DominikBernhardt

Description

When applying IsMonomialMatrix to a matrix from SL(n,q), GAP throws the error

Error, Panic: cannot convert <list> (is a object (positional)) to a plain list in
found := BlistList( M, [  ] ); at /usr/lib/gap/lib/matrix.gi:2580 called from
<function "last">( <arguments> )

Converting the entries of a matrix from SL(n,q) via IntFFE and then calling IsMonomialMatrix works
fine.

As @ssiccha pointed out, one can reproduce the Error via

gap> mm := [[0,1,0], [1,0,0]] * Z(3);;
gap> ConvertToMatrixRep(mm);
3
gap> BlistList(mm, []);
Error, Panic: cannot convert <list> (is a object (positional)) to a plain list
not in any function at *stdin*:26`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    kind: bugIssues describing general bugs, and PRs fixing themkind: bug: unexpected errorIssues describing bugs in which computation unexpectedly encounters an error, and PRs fixing them

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions