Code covered by the BSD License  

Highlights from
Fast Reduced Row Echelon Form

5.0

5.0 | 3 ratings Rate this file 7 Downloads (last 30 days) File Size: 1.8 KB File ID: #21583
image thumbnail

Fast Reduced Row Echelon Form

by Armin Ataei

 

25 Sep 2008 (Updated 29 Sep 2008)

A much faster version of MATLAB's RREF

| Watch this File

File Information
Description

The algorithm is exactly the same as MATLAB's RREF, only difference being that vectorization is used instead of for-loop in the original code to subtract multiples of the pivot row
from all other rows. A typical speed-up range is about 2-4 times of the original code. However, the actual speed-up depends on the size of A. The speed-up is quite considerable (in some cases more than 1000 times) if the number of columns in A far surpass its number of rows.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
01 Oct 2008 Yi Cao

It is indead very fast compared to native MATLAB rref. However, I just wonder when the function is most useful.

02 Oct 2008 Nikola Toljic

Very good.

16 Feb 2011 Babak

Very fast and robust. It may not be a bad idea to preallocate 'jb' and then delete the empty elements. Otherwise, awesome!

Please login to add a comment or rating.
Updates
29 Sep 2008

Screenshot was resized.

Tag Activity for this File
Tag Applied By Date/Time
linear algebra Armin Ataei 22 Oct 2008 10:21:45
frref Armin Ataei 22 Oct 2008 10:21:45
rref Armin Ataei 22 Oct 2008 10:21:45
reduced row echelon form Armin Ataei 22 Oct 2008 10:21:45

Contact us at files@mathworks.com