Lines Matching refs:np
55 "import numpy as np\n",
67 "x_array = np.zeros(num_x)\n",
77 "indices_x = np.zeros(num_x*2, dtype=\"int32\")\n",
83 "indices_u = np.zeros(num_elem*p, dtype=\"int32\")\n",
88 "strides = np.array([1, q, q], dtype=\"int32\")\n",
126 " print('The length of the domain is l = %4.2f'%np.sum(v_array))"
143 "import numpy as np\n",
155 "x_array = np.zeros(num_x)\n",
165 "indices_x = np.zeros(num_x*2, dtype=\"int32\")\n",
171 "indices_u = np.zeros(num_elem*p, dtype=\"int32\")\n",
176 "strides = np.array([1, q, q], dtype=\"int32\")\n",
218 " print('The surface area of the domain is dl = %4.2f'%np.sum(abs(v_array)))"