Skip to content

Instantly share code, notes, and snippets.

View samaid's full-sized avatar
💚
Make your mind free

samaid

💚
Make your mind free
  • 10:19 (UTC -05:00)
View GitHub Profile
@samaid
samaid / jitclass_dict.py
Created October 17, 2019 19:53 — forked from sklam/jitclass_dict.py
JITClass Dictionary Example
from numba import jitclass
from numba import types
from numba.typed import Dict
@jitclass([('d', types.DictType(types.intp, types.float64))])
class DictWrapper(object):
def __init__(self):
d = Dict()
d[1] = 1.2