... rather than passing them to np.array(field_array). This is the preferred method:
In [1]: import galois
In [2]: import numpy as np
In [3]: mat = galois.GF(2).Random((100, 100))
In [4]: %timeit np.array(mat)
488 ns ± 6.41 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each)
In [5]: %timeit mat.view(np.ndarray)
114 ns ± 1.12 ns per loop (mean ± std. dev. of 7 runs, 10,000,000 loops each
... rather than passing them to
np.array(field_array)
. This is the preferred method: