Displaying 1 result from an estimated 1 matches for "bxd".
Did you mean:
bsd
2007 May 17
1
use loop or use apply?
Hi,
I have two matrices, A (axd) and B (bxd). I want to get another matrix C (axb)
such that, C[i,j] is the Euclidean distance between the ith row of A and jth
row of B. In general, I can say that C[i,j] = some.function (A[i,], B[j,]).
What is the best method for doing so? (assume a < b)
I have been doing some exploration myself: Cons...