Revision 5920ef01016998e96ad106284ed35e684981250d authored by Masajiro Iwasaki on 07 June 2023, 00:40:21 UTC, committed by Masajiro Iwasaki on 07 June 2023, 00:40:21 UTC
1 parent a91abde
lorentz_input_generator.py
import random
import numpy as np
n = 5000
d = 10
for i in range(n):
data = np.random.randn(d-1)
h = np.linalg.norm(data)
h = np.sqrt(1 + h*h)
print('%.10f\t' % h, end="")
for j in range(d-1):
print('%.10f' % data[j], end="")
if j < d-2:
print("\t", end="")
if i < n-1:
print("")
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...