scdrs.method._pearson_corr_sparse#
- scdrs.method._pearson_corr_sparse(mat_X, mat_Y)[source]#
Pearson’s correlation between every columns in mat_X and mat_Y (sparse matrix)
- Parameters:
- mat_Xnp.ndarray
First matrix of shape (N,M1).
- mat_Ynp.ndarray
Second matrix of shape (N,M2).
- Returns:
- mat_corrnp.ndarray
Correlation matrix of shape (M1,M2).