File ID: 80320
mex_sepsq 1.0 Description
Description: To compute the Euclidean separation (L2 norm) between two sets of points in MATLAB can be slow and/or memory-hungry. In some cases (most particularly, if you are working with 2D, 3D or 4D data), this function will do it 2-4 times faster than the fastest m-code I've seen (due to Germano Gomes) and hundreds of times faster than a typical memory-efficient nested loop.
NB: for D much greater than 10-15, performance is better using GG's m-script. See the screenshot for a performance plot - green is GG, blue is mex_sepsq.
A = randn(4, 5000);
B = randn(4, 5000);
C1 = mex_sepsq(A, B);
Elapsed time is 0.201335 seconds.
C2 = sepsq_gg(A, B);
Elapsed time is 0.517755 seconds.
Relative time per implementation: 1.00 2.57
Related: mscript, Screenshot, Green, mex sepsqgtgt, gg039s, loopnb, greater, Performance, mex sepsq demo, randn, sepsq gga, relative, Implementation, seconds, 5000b, mex sepsqa
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 71.7 KB
|More Similar Code|
It is the version in C Mex frame of my cardiac processor VI1 for cardiac cells oscillations.I am very in love with matlab and mathworks products so i publish only for one time my work out of matlab in C Mex for C execution.
Learn how to create MEX-functions: programs written in C, C++, or Fortran code that are callable from MATLAB. This article is a guide to getting started and performing practical tasks as well as a reference.
This code is the mex interface for computing Earth Movers Distance between signatures and is based on the Y. Rubner's C Implementation.
For building the mex file you should have...
This small script modifies the files used by MATLAB to compile mex-functions within MATLAB so that CUDA is supported.
Once the script setup_cuda_mex.m is run you can just compile CUDA mex files with the function cuda_mex.m.
Here are some configuration files to allow the mex -setup being with
i) Intel Fortran 8.1 with MS Visual Studio 2003
ii) Intel Fortran 10.1 with MS Visual Studio 2005
I installed Microsoft Visual Studio(MVS) 2008 and Matlab R2007b and tried "mex -setup" command from Matlab. However my MVS 2008 was not recognized by Matlab. I debugged mex.m and found a way to show MVS 2008 to Matlab. Necessary files...
The MATLAB compiler toolbox builds native libraries (MEX-functions) and executables (applications) for different platforms. The compiler scripts "mex" and "mcc" offer a user-friendly interface for compiling and linking M, C,...
H2Mex is a program that gernerates automatically an interface file (MEX file) from header file (the .h file).
The Header file format is a clean C format, It's extended with some modifiers that allows to H2MEX to understand the exact...
I recently had a requirement to make MFC calls within a mex function. After looking around I was unable to find a single example, so I had to develop my own. Hopefully this will make the job easier for you. The procedure is actually pretty easy...
I saw that there was no simple example on who to use MS Visual Studio 2005 to make and debug Matlab mex files.
The solution added has a readme.txt that specifies filepaths that must be changed to make it work on your PC.
|User Review for mex_sepsq
All files and free downloads are copyright of their respective owners. We do not provide any hacked, cracked, illegal, pirated version of scripts, codes, components downloads. All files are downloaded from the publishers website, our file servers or download mirrors. Always Virus check files downloaded from the web specially zip, rar, exe, trial, full versions etc. Download links from rapidshare, depositfiles, megaupload etc not published.