I work in Python with NumPy arrays of complex numbers that go well beyond the normal floating point values โโof the NumPys type of the default Complex (numbers greater than 10 ^ 500). I wanted to know if there is a way to expand NumPy so that it can handle complex numbers with such a magnitude. For example, is there a way to create a complex NumPy type that uses functionality from a decimal module?
I know that there are resources available, such as mpmath ( https://code.google.com/p/mpmath/ ), which could probably do what I need, however this requirement is my project, which I use Numpy
For those who are wondering why I need these huge numbers, this is because I am working on modeling the numerical relativity of the early Universe.
source share