# NOT RUN {
if (reticulate::py_available() && reticulate::py_module_available("scipy")) {
library(nmslibR)
set.seed(1)
x = matrix(runif(1000), nrow = 100, ncol = 10)
res = mat_2scipy_sparse(x)
print(dim(x))
print(res$shape)
}
# }
Run the code above in your browser using DataLab