Skip to content

Commit

Permalink
Added rank-3 example
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffrey-hokanson committed Apr 9, 2019
1 parent c3e72d6 commit cb16b6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ def test_initial_sample(m = 20):
dom = BoxDomain(-np.ones(m), np.ones(m))
L1 = np.random.randn(1,m)
L2 = np.random.randn(2,m)
L3 = np.random.randn(3,m)

Nsamp = 1000
for L in [L1, L2]:
Nsamp = 100
for L in [L1, L2, L3]:
# Standard uniform sampling
X1 = dom.sample(Nsamp)
LX1 = L.dot(X1.T).T
Expand Down

0 comments on commit cb16b6f

Please sign in to comment.