Skip to content

Instantly share code, notes, and snippets.

@paugier
paugier / bench.py
Created March 25, 2020 08:50
Performance issue with nested loops and np.sum in the inner one
"""
See https://github.com/serge-sans-paille/pythran/issues/1501
"""
from functools import partial
import numpy as np
from transonic import jit, wait_for_all_extensions
@paugier
paugier / notes.md
Last active November 1, 2019 22:51
Notes pour Laura sur présentation pyconfr 2019 sur Transonic

Notes pour Laura sur présentation pyconfr 2019 sur Transonic

http://tiny.cc/pyconfr2019-transonic

J'essaierai de te faire un pdf mais pas sûr que j'y arrive. Je n'ai jamais vraiment fait ça...

  1. Titre, institutions et personnes

  2. De quoi on parle : un nouveau paquet Python. Oh la belle image. On part de Python/Numpy et Transonic accélère ça avec Cython, Numba et Pythran.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@paugier
paugier / histogram_fluidpythran.py
Created December 7, 2018 21:48
histogram_fluidpythran.py
import numpy as np
from fluidpythran import boost, Array, NDim
@boost
def nint(x: float):
if x >= 0:
return int(x + 0.5)
@paugier
paugier / my_pythran_file.py
Created November 14, 2018 05:27
pythran dataclass
from dataclasses import dataclass
@dataclass
class Base:
a: "float[:, :]"
b: "float[:, :]"
c: "float[:, :]"
def intermediate(self, d: int):