Same functionality as the MATLAB rref function, but quicker.
A = rand(200);
R1 = rref(A);
Elapsed time is 1.435837 seconds.
R2 = mex_rref(A);
Elapsed time is 0.012729 seconds.
max(max(abs(R1 - R2))): 0
Speed-up factor: 113
Added a demo script and an auto-compile script. Also added proper support for tolerance parameter.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.