Ask Your Question

Cython curious's profile - activity

2015-12-06 13:32:06 +0200 received badge  Nice Question (source)
2015-11-30 23:35:33 +0200 received badge  Student (source)
2015-11-30 19:47:06 +0200 asked a question def type of mpmath matrices in cython

I'm trying to speed up the exact iterative calculation of the 1E9 th Fibonacci number, which has 208987640 digits. Working with Python and mpmath I've reached an acceptable time, but I'm looking to further reduce it using Cython. In this case the overload is due to the huge numbers, stored in Knuth's 2 x 2 matrices, that have been defined using Numpy and mpmath. For Cython to be helpful in this subject, I should define those matrices as static, but I don't know the type I should use to define it. Is there a special type for this case?