nvidia-cuda-tutorial icon indicating copy to clipboard operation
nvidia-cuda-tutorial copied to clipboard

Session 4 (Extending Numba) should mention `__hash__` and `__eq__` methods of types

Open gmarkall opened this issue 4 years ago • 0 comments

Failing to implement these results in weird behaviour for parameterised types:

  • __hash__ is required for correct interning.
  • __eq__ is required to determine if casts are required.

gmarkall avatar May 18 '21 21:05 gmarkall