Skip to content

Instantly share code, notes, and snippets.

@dakami
dakami / naive.py
Created May 26, 2018 08:57
Naive Numba Demo
import numpy as np
from numba import jit
X = (np.random.random((256,256))*16).astype(int)
Y = (np.random.random((256,256))*16).astype(int)
@jit
def naive():
result = np.zeros((256,256))
for i in range(len(X)):