Lines Matching refs:np
55 "import numpy as np\n",
62 " result *= np.tanh(x[d] - center)\n",
121 " x[...] = np.eye(P)\n",
198 " x = np.empty(X_dim*dim, dtype=\"float64\")\n",
199 " u_array = np.empty(Q_dim, dtype=\"float64\")\n",
220 " x = np.empty(dim, dtype=\"float64\")\n",
241 " plt.scatter(x, y, c=np.array(u_array).reshape(Q, Q))\n",
266 " x_array = np.empty(X_dim*dim, dtype=\"float64\")\n",
267 " u_array = np.empty(P_dim, dtype=\"float64\")\n",
291 " x = np.empty(dim, dtype=\"float64\")\n",
311 " print('1T * G * u - uT * (GT * 1) =', np.abs(sum_1 - sum_2))"