Side, fun and small projects in Python.
modular_arithmetic.py contains a Python class for rings of integers modulo a given number. The basic operators are defined with focus on exponentiation which uses Euler's theorem, extend to non-coprimes, to deal with large exponent.
Chamfer_distance_for_Pytorch_comparison.py makes a comparison between two available implementations of the Chamfer distance and a personal one.