Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

orthogonalization and orthonormalization of vectors under integer mod

how can I get first orthogonal(Gram–Schmidt process) and then orthonormal of basis vector list under integer mod.

l=[(1,2,3),(1,5,6)]
basis=[vector(GF(29),i) for i in l]
print(basis)
#[(1,2,3),(1,5,6)]