Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions benchmark/matrix_stuffing.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class ConeMatrixStuffingBench:
def setup(self):
m = 5000
n = 5000
np.random.seed(0)
A = np.random.randn(m, n)
C = np.random.rand(m // 2)
b = np.random.randn(m)
Expand All @@ -44,6 +45,7 @@ class ParamConeMatrixStuffing:
def setup(self):
m = 200
n = 200
np.random.seed(0)
A = cp.Parameter((m, n))
C = cp.Parameter(m // 2)
b = cp.Parameter(m)
Expand All @@ -70,6 +72,7 @@ class SmallMatrixStuffing:
def setup(self):
m = 4000
n = 4000
np.random.seed(0)
A = np.random.randn(m, n)
C = np.random.rand(m // 2)
b = np.random.randn(m)
Expand All @@ -93,6 +96,7 @@ class ParamSmallMatrixStuffing:
def setup(self):
m = 300
n = 300
np.random.seed(0)
A = cp.Parameter((m, n))
C = cp.Parameter(m // 2)
b = cp.Parameter(m)
Expand Down
1 change: 1 addition & 0 deletions benchmark/simple_QP_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def setup(self):
N_t = 2
N_s = 7

np.random.seed(0)
x = np.random.randint(2, size=N_s * N_r * N_t)

H = dft(N_s * N_r * N_t) * 1j
Expand Down
1 change: 1 addition & 0 deletions benchmark/tv_inpainting.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
class TvInpainting:

def setup(self):
np.random.seed(0)
Uorig = np.random.randn(512, 512, 3)
rows, cols, colors = Uorig.shape
known = np.zeros((rows, cols, colors))
Expand Down
Loading