How can I convert my list of lists to fixed size matrix?

Joseph Katzman

I want to create Hemming Matrix. I have just built Galois field like multiplicative group. That's what I got:

MultiplicativeGroup = DeleteDuplicates[
   NestList[
    PolynomialMod[
      PolynomialMod[(generating*#), irreducablePolynomial], 2] &, 1, 
    n]];

{1, a, a^2, 1 + a^2, 1 + a + a^2, 1 + a, a + a^2}

After that I converted it into binary form which look like this one:

CoefficientList[MultiplicativeGroup, a]

{{1}, {0, 1}, {0, 0, 1}, {1, 0, 1}, {1, 1, 1}, {1, 1}, {0, 1, 1}} But I stuck with converting it into binary matrix form. It's have to look like this one:

(0  0   1   1   1   0   1
0   1   0   0   1   1   1
1   0   0   1   1   1   0)

But I actually don't know how to do it. I can't transpose it or do anything else. Could you help me?

Kuba
array = {{1}, {0, 1}, {0, 0, 1}, {1, 0, 1}, {1, 1, 1}, {1, 1}, {0, 1, 1}}

PadLeft[#, 3] & /@ Reverse[array, 2] // Transpose

enter image description here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I convert list of dictionaries to list of lists?

How can I split a list or IEnumerable into smaller lists of N size?

Convert matrix to a list of lists

How can I convert my gene data into a sparse matrix?

How can I convert a list of lists in a Dataframe in Pyspark?

R: How can I convert list of lists data into a dataframe

How can I convert a list of lists into a data frame for export?

How to add an item to a list of lists in Python that has a fixed size

How do I convert a matrix of integers to a matrix of lists of integers in numpy?

How can I obtain matrix with nested lists?

How can I make my webpage background cover fixed for the full size page in css?

How can I convert two lists into a dataframe, having one as a list of lists?

How do I convert the list of lists to a NumPy array and get the full size?

How can I convert the sum of my list to an Integer in Python 3?

How do I split a list with fixed size number into another list?

How do I convert a list into a matrix in KDB?

How do I convert my list of lists to a usable data.frame (for printing out a table)?

How can i convert this lists object into a dataframe?

How to convert a list of lists of lists into a list of lists?

How can I assign an array to a fixed matrix index?

How can I transform my Dictionary to a Matrix?

Can I have my fixed button remain at a fixed size when zooming in mobile?

How to convert list of lists to a set in python so I can compare to other sets?

How can I count the depth in a list of lists?

How can I decode a list of lists?

How can I generate a list of lists of permutations

How can I rotate this list of lists with python

How I can subset a list of lists?

How can I make an extension for a list of lists