Skip to content Skip to sidebar Skip to footer
Showing posts with the label Numba

Design Heuristics For Writing Python Classes That Interact With `scipy.integrate.odeint`?

Introduction scipy.integrate.odeint requires as its first argument, a function that computes the de… Read more Design Heuristics For Writing Python Classes That Interact With `scipy.integrate.odeint`?

Understanding Shared Memory Use For Improvement In Numba

I'm trying to learn more about the use of shared memory to improve performance in some cuda ker… Read more Understanding Shared Memory Use For Improvement In Numba

Numba 3x Slower Than Numpy

We have a vectorial numpy get_pos_neg_bitwise function that use a mask=[132 20 192] and a df.shape… Read more Numba 3x Slower Than Numpy

How To Use Supported Numpy And Math Functions With Cuda In Python?

According to numba 0.51.2 documentation, CUDA Python supports several math functions. However, it d… Read more How To Use Supported Numpy And Math Functions With Cuda In Python?

How To Efficiently Create A Tuple Of Length N With Code That Will Compile With Numba?

I timed two ways to create a tuple of length N. This is very fast: def createTuple(): for _ in … Read more How To Efficiently Create A Tuple Of Length N With Code That Will Compile With Numba?

@jit Slowing Down Function

I'm developing an optimization code for a complex reservoir operations problem. Part of this re… Read more @jit Slowing Down Function

Parallelizing A Maximum Over An Nd-array Using Numba

I am trying to use Numba to parallelize a Python function which takes two numpy ndarrays, alpha and… Read more Parallelizing A Maximum Over An Nd-array Using Numba

How Call A `@guvectorize` Inside A `@guvectorize` In Numba?

I'm trying to call a @guvectorize inside a @guvectorize but I have an error saying : Untyped gl… Read more How Call A `@guvectorize` Inside A `@guvectorize` In Numba?