row_cos_sim: Cosine similarity between rows of two matrices

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Cosine similarity between rows of two matrices

Usage

1
row_cos_sim(x, y, return_log = FALSE)

Arguments

x

numeric matrix of dimension n times k

y

numeric matrix of dimension m times k

return_log

boolean, if true returns the log of the cosine similarity

Value

matrix of dimension n times m where the (i,j)th element is the cosine similarity between the ith row of x and the jth row of y


baruuum/btoolbox documentation built on Aug. 17, 2020, 1:29 a.m.