Be the first to rate this file! 13 downloads (last 30 days) File Size: 228.24 KB File ID: #24360

bvp5c2

by Qun HAN

 

07 Jun 2009

Code covered by BSD License  

Faster version of the MATLAB function bvp5c

Download Now | Watch this File

File Information
Description

The inefficient sparse matrix operation in colloc_JacODE_region is optimized according to the method intruduced in Loren's blog (http://blogs.mathworks.com/loren/2007/03/01/creating-sparse-finite-element-matrices-in-matlab/). More than 10x efficiency improvement can be expected for large BVP systems.

The mex file SPARSE2.MEXW32 is compiled from SuiteSparse(http://www.cise.ufl.edu/research/sparse/SuiteSparse/). It is about 2x faster than SPARSE. If you encounters problem with it, just comment it out in bvp5c2 and use the MATLAB function sparse.

MATLAB release MATLAB 7.8 (R2009a)
Zip File Content  
Other Files bvp5c2.m,
license.txt,
sparse2.mexw32
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
08 Jun 2009 Qun HAN

USAGE:
Unzip to MATLABROOT\toolbox\matlab\funfun

12 Jun 2009 Qun HAN

For a benchmark see:
http://junziyang.spaces.live.com/blog/cns!909609E321D6E37A!498.entry

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
bvp5c Qun HAN 08 Jun 2009 09:31:09
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com