source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/test_sqdist.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 242 bytes
Line 
1x = [1 2; 3 4];
2A = x*x';
3sqdist(x,x)
4sqdist(x,x,A)
5
6niter = 2;
7x = randn(300);
8A = x*x';
9fprintf('Euclidean:')
10tic; for iter = 1:niter sqdist(x,x); end; toc
11fprintf('Mahalanobis:')
12tic; for iter = 1:niter sqdist(x,x,A); end; toc
Note: See TracBrowser for help on using the repository browser.