Efficient version for computing correlations between all rows

allrow_cor(A, B)

Arguments

A

first matrix

B

second matrix - should be exactly same dimension as A