Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Generating random vectors list which are linearly independent

How can I get n(maybe 10) vectors that are linearly independent from a vector space?

gen=VectorSpace(GF(29),9)
basis=[gen.random_element() for i in range(10)]
print(gen.linear_dependence(basis)==[]) #False