Publisher review:mex_sepsq - Fast, dedicated code to compute Euclidean separation between sets of points in N-dimensional space. To compute the separation between two sets of points in MATLAB is slow. If you perform this operation a lot, this little piece of code will do it around 15 times faster than the best m-code I can come up with, and hundreds of times faster than a simple nested loop.For instance...>> A=randn(10,1000);>> B=randn(10,1000);>> tic; mex_sepsq(A,B); disp(toc)0.0620>> tic; sepsq(A,B); disp(toc)1.2040>> disp(1.2040/0.0620)19.4194 Requirements: ยท MATLAB Release: R13
mex_sepsq is a Matlab script for Mathematics scripts design by Ben Mitch.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris