Commit c6d2b4f9 by mrebollo

python version added

parent 2de27a94
This source diff could not be displayed because it is too large. You can view the blob instead.
import numpy as np
import scipy.sparse as sp
def generate_random(n):
A = sp.rand(n, n,
density=np.log(n) / n,
format='csr') > 0
# make matrix symmetric
A = sp.triu(A, k=-1)
A = A + np.transpose(A)
return A
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment