D = gsp_distanz(X, Y);
X | matrix with col vectors |
Y | matrix with col vectors (default == X) |
P | distance matrix (default Identity) |
D | distance matrix, not squared |
This code computes the following
for all vectors in X an Y!
This code is not optimized for memory, but for speed because it uses no loops.