Matrix multiplication not working for MatrixGroupElement_Gap object [closed]

asked 2024-01-16 06:02:47 +0100

woojoshua78 gravatar image

updated 2024-01-16 06:03:00 +0100

Hi, I want to do a really simple multiplication between two matrices that are each independently defined from different matrix groups, but does have the same underlying structure.

sage: G 
Subgroup with 3 generators(blah, blah, blah) of General Linear Group of degree 4 over Finite Field of size 2

sage: H
Subgroup with 5 generators(blah, ... , blah) of General Linear Group of degree 4 over Finite Field of size 2

sage: g = G.random_element(); h = H.random_element();
g 
[0 1 0 0]
[1 0 0 0]
[0 0 0 1]
[1 1 1 0]
h
[1 0 0 0]
[0 1 0 0]
[1 0 1 0]
[1 1 1 1]

But when I do g*h in the sage command, it says

TypeError: unsupported operand parent(s) for *: G and H

What is the problem here? How can I solve it?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Max Alekseyev
close date 2024-01-16 17:09:48.346871

Comments

1

Ahh I was dumb, matrix(g)*matrix(h) works.

woojoshua78 gravatar imagewoojoshua78 ( 2024-01-16 07:03:54 +0100 )edit