# NOT RUN {
#load library
library(RandPro)
# Matrix generated with deafult method "achlioptas" without JLT
mat <- form_sparse_matrix(n_rows = 300,n_cols = 1000,JLT = FALSE)
#create matrix with JLT and default method
mat <- form_sparse_matrix(n_rows = 250,n_cols = 1000000,JLT = TRUE,eps = 0.5)
#create matrix with JLT and probability method
mat <- form_sparse_matrix(250,1000000,JLT = TRUE,eps = 0.5,method = "probability")
#create matrix with JLT and li method
mat <- form_sparse_matrix(n_rows = 250,n_cols = 1000000,JLT = TRUE,eps = 0.5,method = "li")
# }
Run the code above in your browser using DataLab