Ask Your Question
1

Generator matrix of RS-code

asked 2022-01-19 10:29:44 +0200

Thangvu gravatar image

Hi everyone, i need to find generator matrix of RS-code as numbers, not as polynomial. Is there any way to convert these polynomials to numbers? Example:

C = codes.ReedSolomonCode(GF(64), 9,4)

C.generator_matrix()

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-01-19 13:11:58 +0200

rburing gravatar image

updated 2022-01-19 13:15:31 +0200

You can apply the integer_representation method to each entry of the matrix:

sage: C.generator_matrix().apply_map(lambda w: w.integer_representation(), R=ZZ)
[ 1  1  1  1  1  1  1  1  1]
[ 1 54 18 14 51 17 15  5  3]
[ 1 18 51 15  3 54 14 17  5]
[ 1 14 15  1 14 15  1 14 15]

Note that the result depends on the choice of modulus for the finite field.

edit flag offensive delete link more

Comments

Thank you!

Thangvu gravatar imageThangvu ( 2022-01-19 13:31:17 +0200 )edit

@Thangvu - you can accept the answer by clicking the accept button next to it (the button with a check mark). This will mark the question as solved.

slelievre gravatar imageslelievre ( 2022-01-19 21:38:05 +0200 )edit

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: 2022-01-19 10:29:44 +0200

Seen: 260 times

Last updated: Jan 19 '22