I'm working in Python with NumPy arrays of complex numbers that extend well past the normal floating point limits of NumPy’s default Complex type (numbers greater than 10^500). I wanted to know if there was some way I could extend NumPy so that it will be able to handle complex numbers with this sort of magnitude. For example, is there a way to make a NumPy complex type that uses functionality from the Decimal module?
I know there are resources available such as mpmath that could probably do what I need. However, it is a requirement of my project that I use NumPy.
For anyone that's interested in why I need these enormous numbers, it's because I'm working on a numerical relativity simulation of the early universe.