This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1033edge.com | |
11mail.com | |
123.com | |
123box.net | |
123india.com | |
123mail.cl | |
123qwe.co.uk | |
126.com | |
150ml.com | |
15meg4free.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% This is a modified version of matlab's building rref which calculates | |
% row-reduced echelon form in gf(2). Useful for linear codes. | |
% Tolerance was removed because yolo, and because all values | |
% should only be 0 or 1. @benathon | |
function [A] = g2rref(A) | |
%G2RREF Reduced row echelon form in gf(2). | |
% R = RREF(A) produces the reduced row echelon form of A in gf(2). | |
% | |
% Class support for input A: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% This is a modified version of matlab's building rref which calculates | |
% row-reduced echelon form in gf(2). Useful for linear codes. | |
% Tolerance was removed because yolo, and because all values | |
% should only be 0 or 1. @benathon | |
function [Arref, M, N, rnk] = g2rref(A) | |
%G2RREF Reduced row echelon form in gf(2). | |
% R = RREF(A) produces the reduced row echelon form of A in gf(2). | |
% | |
% Class support for input A: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import numba | |
@numba.jit(nopython=True, parallel=True) #parallel speeds up computation only over very large matrices | |
# M is a mxn matrix binary matrix | |
# all elements in M should be uint8 | |
def gf2elim(M): | |
m,n = M.shape |