This function calculates the row-wise cosine similarity between two matrices with the same number of columns.
cosineSimilarity(X: number[][], Y: number[][]): number[][]| Name | Type | Description |
|---|---|---|
X* | number[][] | The first matrix. |
Y* | number[][] | The second matrix. |