Calculates the number of elements common between columns of two matrices. This function performs a simple dot product when binarize = FALSE.
get_cooccurrence_stats(matrix1, matrix2, sparse = TRUE, binarize = TRUE)Returns a column by column matrix, where entries represent the number of common elements.
The first input matrix.
The second input matrix.
If TRUE, coerces matrices to sparse format for efficiency.
If TRUE, converts matrices to binary format to count the number of common elements.