5.0

5.0 | 1 rating Rate this file 8 downloads (last 30 days) File Size: 4.73 KB File ID: #27680

Multiple eigen-values for 2x2 and 3x3 matrices

by Bruno Luong

 

20 May 2010 (Updated 27 May 2010)

Code covered by the BSD License  

Compute in one shot the eigen-values of multiples (3 x 3) matrices using Cardan's formula

Download Now | Watch this File

File Information
Description

Note that this function do not return EIGEN VECTORS.

This function is faster than looping on EIG when eigenvalues must be computed for a large number of matrices. The test shows it can speed up by 10 times

MATLAB release MATLAB 7.10 (2010a)
Zip File Content  
Other Files Eig3Folder/bench_eig3.m,
Eig3Folder/CardanRoots.m,
Eig3Folder/eig2.m,
Eig3Folder/eig3.m,
Eig3Folder/ParabolaRoots.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
26 Jul 2010 Jeff Evans

Excellent. Much faster than running eig in a for loop. Thanks!

Please login to add a comment or rating.
Updates
20 May 2010

Speed improvement

21 May 2010

Extend to complex matrices as well

27 May 2010

Extend for 2x2 matrices

Tag Activity for this File
Tag Applied By Date/Time
eigenvalues Bruno Luong 20 May 2010 13:10:25
cardan formula Bruno Luong 20 May 2010 13:10:26
3x3 matrices Bruno Luong 20 May 2010 13:10:26
2x2 matrices Bruno Luong 27 May 2010 11:43:33

Contact us at files@mathworks.com