Ask Your Question

Parker's profile - activity

2023-02-22 03:22:24 +0100 received badge  Famous Question (source)
2023-02-22 03:22:24 +0100 received badge  Notable Question (source)
2021-05-20 08:58:01 +0100 received badge  Good Question (source)
2020-07-27 22:10:25 +0100 received badge  Popular Question (source)
2020-07-03 09:53:48 +0100 received badge  Famous Question (source)
2019-12-13 11:10:59 +0100 received badge  Notable Question (source)
2019-12-13 11:10:59 +0100 received badge  Popular Question (source)
2018-09-14 01:58:20 +0100 received badge  Nice Question (source)
2018-09-13 11:14:36 +0100 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 13:19:27 +0100 received badge  Scholar (source)
2018-08-06 13:11:08 +0100 received badge  Student (source)
2018-08-06 13:07:18 +0100 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.