Processing math: 100%
Ask Your Question
1

Regarding rational canonical form/frobenius form of matrices over finite fields

asked 7 years ago

Ramachandran gravatar image

Hi,

The sagemath documentation on linear algebra describes a function frobenius which computes the frobenius normal form (rational canonical form) of a matrix over integers. The same command doesnt work on matrices over finite fields. Can someone help me to find the frobenius form of matrices over finite fields

Sample code :

A = matrix(GF(2),[[1,0,0],[0,0,1],[1,1,0]])

A.frobenius()

This code gives the error

'sage.matrix.matrix_mod2_dense.Matrix_mod2_dense' object has no attribute 'frobenius'

Preview: (hide)

Comments

There is work in progress about this kind of thing here : https://trac.sagemath.org/ticket/22397 But it is kind of stuck currently.

FrédéricC gravatar imageFrédéricC ( 7 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 7 years ago

FrédéricC gravatar image

Like that:

sage: A = matrix(GF(2),[[1,0,0],[0,0,1],[1,1,0]])
sage: A.rational_form()
[0 0 1]
[1 0 1]
[0 1 1]
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 7 years ago

Seen: 1,491 times

Last updated: Jan 18 '18