flamingpy.utils.linalg.reduce_RREform_mod2¶
- flamingpy.utils.linalg.reduce_RREform_mod2(M, max_cols=None)[source]¶
Put a binary matrix into row reduced echelon form modulo 2, up to a maximum number of columns given by max_cols.
- Parameters
M (numpy.array) – the matrix to reduce.
max_cols (int) – the maximum number of columns of the input array to reduce.
- Returns
the reduced matrix and the the index of pivot column.
- Return type
(numpy.array, int)
source/api/flamingpy.utils.linalg.reduce_RREform_mod2
Download Python script
Download Notebook
View on GitHub