Ask Your Question

Parker's profile - activity

2018-09-13 18:58:20 -0500 received badge  Nice Question (source)
2018-09-13 04:14:36 -0500 asked a question list of random non-zero elements

I was wondering if there was a short way to generate lists of random non-zero elements of GF(q) ? What I have so far is:

  L=[];  
  for i in range(10):  
     a=GF(25).random_element();  
     while a==0:  
         a=GF(25).random_element();  
     L.append(a);
2018-08-06 06:19:27 -0500 received badge  Scholar (source)
2018-08-06 06:11:08 -0500 received badge  Student (source)
2018-08-06 06:07:18 -0500 asked a question span of matrices over finite fields

Hello,

I'd to build the span of some matrices defined over GF(4). However, the function span doesn't fit since it seems to interpret matrices as lists of vectors. I tried the following :

F=GF(4);
n=11;
A=random_matrix(F,n);
B=random_matrix(F,n);
print(span(A,F));
print(span([A,B],F));

None of which gives satisfying results (the second one gives an error). So, I wanted to know if there was a way to properly get a span of matrices in sagemath.

Thanks in advance.