Advertisement
Guest User

miau

a guest
Oct 15th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. GC, GS = [], [] # canonical and systematic generator matrices (dimension 16x8)
  2. for a in alpha:
  3.     row_GC, row_GS = [], []
  4.     for k in range(8):
  5.         row_GC.append(a^k)
  6.         p = lagrange_polys[k]
  7.         row_GS.append(p(a))
  8.     GC.append(row_GC)
  9.     GS.append(row_GS)
  10. GC, GS = matrix(GC), matrix(GS) # y = G*x, no x*G porque quedaron al reves
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement