File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ <h2 class="featurette-heading">Accelerate Python Functions</h2>
109109 < pre > < code class ="language-python "> from numba import jit
110110import random
111111
112- @jit(nopython=True)
112+ @jit
113113def monte_carlo_pi(nsamples):
114114 acc = 0
115115 for i in range(nsamples):
@@ -134,7 +134,7 @@ <h2 class="featurette-heading">Built for Scientific Computing</h2>
134134 </ div >
135135
136136 < div class ="col-md-5 code-block ">
137- < pre > < code class ="language-python "> @numba.jit(nopython=True, parallel=True)
137+ < pre > < code class ="language-python "> @njit( parallel=True)
138138def logistic_regression(Y, X, w, iterations):
139139 for i in range(iterations):
140140 w -= np.dot(((1.0 /
@@ -153,7 +153,7 @@ <h2 class="featurette-heading">Parallelize Your Algorithms</h2>
153153
154154 < div class ="col-lg-4 ">
155155 < h2 class ="mt-3 "> Simplified Threading</ h2 >
156- < pre > < code class ="language-python "> @jit(nopython=True, parallel=True)
156+ < pre > < code class ="language-python "> @njit( parallel=True)
157157def simulator(out):
158158 # iterate loop in parallel
159159 for i in prange(out.shape[0]):
You can’t perform that action at this time.
0 commit comments