initial commit

This commit is contained in:
2018-08-13 11:22:36 +09:00
commit 0ae676dd96
15 changed files with 12519 additions and 0 deletions

37
test.py Normal file
View File

@@ -0,0 +1,37 @@
import numpy as np
x = np.ones((2, 3, 4,5 ))
print('x:')
print(x.shape)
print(x)
y = np.transpose(x)
print('y:')
print(y.shape)
print(y)
x = np.array([1,2,3,4,5])
print(x)
print(x.mean())
print(x.std())
print(10**(1/2))
data = np.array([
[1,3+1],
[2,6+1],
[3,9+1],
[4,12+1],
[5,15+1],
])
n = data.shape[0]
x_init = data[:,0]
x = np.c_[x_init.reshape(n, -1), np.ones((n, 1))]
print(x)
x = np.array([1,2,3,4,5,6,7,8,9,10])
print(x**2)
x = x**2
print(x.sum())