Skip to content

Commit b86e7b8

Browse files
committed
jit -> njit
As title
1 parent af1b53a commit b86e7b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ <h2 class="featurette-heading">Accelerate Python Functions</h2>
109109
<pre><code class="language-python">from numba import jit
110110
import random
111111

112-
@jit(nopython=True)
112+
@jit
113113
def 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)
138138
def 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)
157157
def simulator(out):
158158
# iterate loop in parallel
159159
for i in prange(out.shape[0]):

0 commit comments

Comments
 (0)