Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Koken 0.8.2
  • ContentBox 1.5.2
  • jQPlayer 0.5.2
  • SPOILER ALERT! 0.0.2
  • jQuery Mask Plugin 0.9.0
  • Easing Slider 2.1.2
  • Btapp.js 0.2.0
  • WiiFlash 0.4.5
  • Breeze.js 1.3.3
  • TinyMCE Templates 3.0.2
  • Home > Scripts > Development Tools

    matlab iterator

    Download button

    Downloads: 498  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.7/5)
    20 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Peter Rydesater | More scripts
    www.mathworks.com
    Freeware 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    Matlab
    October 3rd, 2007, 09:18 GMT
    C: \ Development Tools

     Read user reviews (0)  Refer to a friend  Subscribe

    matlab iterator description

    iterator compiles MATLAB expression/m-files to fast MEX files.

    If you need to speed up your matlab code this is this something for you. This is NOT a replacement for the "MATLAB Compiler" but a great complement. It can do some optimizations that MATLAB compiler or JIT does not by compiling m-files or MATLAB expressions.

    Expressions that operates element by element on large arrays can be much faster if it operates more local. By compiling the expression with a C-compiler it can perform all operation on each element before going to next element.

    MATLAB normally executes one operation at a time on all elements before going on to next operator. ITERATOR generates (and compiles) c-source with the expression and all interfacing between MATLAB and the expression. ITERATOR supports converting a MATLAB expression with scalar only operations, "SCALARLAB", but it lets that expression iterate over all elements in all arrays and thereby getting it vectorized. This makes ITERATOR excellent to vectorize algorithms which that normally is impossible to vectorize in an efficient way.

    As the operation works more localy the bad effect of memory bandwidth limitation (in ordinary MATLAB) is decreased and the performances of the CPU is better used. This makes it succesfull to use threads and multiple CPUs on at least the more complex expressions. With options to ITERATOR you can use multiple CPUs mostly without any changes to your expressions.

    Example:

    iterator R=mypyt(A,B) R=sqrt(A.*A B.*B)

    And you can then use it with:

    X=rand(512,512);
    Y=rand(512,512);
    Z=mypyt(X,Y);

    Multi cpu support are also simple, example:

    iterator -cpu 4 R=mypyt(A,B) R=sqrt(A.*A B.*B)

    Gives a function that used 4 CPUs with help of threads for large arrays.

    Put the iterator line in beginning of your scripts. It will only re-compile the function if its changed.

    Requirements:

    · MATLAB Release: R12.1



    TAGS:

    matlab iterator | development tools | matlab tools | matlab | iterator | development

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM