Skip to content
Prev 43300 / 398506 Next

distance between two matrices

make the lines below a function of a vector argument and 
apply it over the rows of B.

?apply for more info. You'll want to know about apply if
you want to avoid loops (which is a good approach).
Thing is, the above approach requires all data to be in main memory.
i hope this is not a problem.