title: Is there a good way to find the rank of a matrix in a field of characteristic p>0?
body: <p>I need an efficient algorithm or a known way to determine <a href="https://en.wikipedia.org/wiki/Rank_(linear_algebra)" rel="nofollow">the mathematical rank</a> of a matrix A with coefficients in a field of positive characteristic. </p>
  
  <p>For example, in the finite field of 5 elements I have the following matrix:</p>
  
  <pre><code>import numpy
  A=[[2,3],[3,2]]
  print numpy.linalg.matrix_rank(A)
  </code></pre>
  
  <p>This method gives me the result of 2, but in characteristic 5 this matrix has rank 1 since <code>[2,3]+[3,2]=[0,0]</code>.</p>