This function calculates the row-wise cosine similarity between two matrices with the same number of columns.
The first matrix.
The second matrix.
A matrix where each row represents the cosine similarity values between the corresponding rows of X and Y.
If the number of columns in X and Y are not the same.
This function calculates the row-wise cosine similarity between two matrices with the same number of columns.