html">Index</a></li><li><a href="vl_kmeans.html">Prev</a></li><li><a href="vl_alphanum.html">Next</a></li></ul><div class="documentation"><p>
D = <a href="vl_alldist2.html">VL_ALLDIST2</a>(X,Y) returns the pairwise distance matrix D of the
columns of S1 and S2, yielding
</p><pre>
  D(i,j) = sum (X(:,i) - Y(:,j)).^2
</pre><p>
<a href="vl_alldist2.html">VL_ALLDIST2</a>(X) returns the pairwise distance matrix fo the columns of
S, yielding
</p><pre>
  D(i,j) = sum (X(:,i) - X(:,j)).^2
</pre><p>
<a href="vl_alld