Computes the Pearson correlation for each row between matrices A and B.

row_cor(A, B)

Arguments

A

A numeric matrix.

B

A numeric matrix of the same dimensions as A.

Value

A numeric vector of correlations, one per row.