ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 30 Nov 2015 12:43:17 -0600def type of mpmath matrices in cythonhttps://ask.sagemath.org/question/31210/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?
Cython curiousMon, 30 Nov 2015 12:43:17 -0600https://ask.sagemath.org/question/31210/static typing of mpf variables in cythonhttps://ask.sagemath.org/question/10120/static-typing-of-mpf-variables-in-cython/Hello,
I am a new user of cython. I was looking for the static typing of
python's mpf type variables in cython for speed up.
For example:
python: N=10
static typing in cython: cdef int N=10
Now I'm looking for the equivalent for mpf variables:
python: from mpmath import mpf , N = mpf(10)
cython: ???
maybe sth like: 'cdef mpf_t N=10' but this doesn't work.
Thank you,
ErfanWed, 15 May 2013 18:02:42 -0500https://ask.sagemath.org/question/10120/Missing Jmol Images when printinghttps://ask.sagemath.org/question/8357/missing-jmol-images-when-printing/When I attempt to print a notebook worksheet using either Safari or Chrome containing four plot3D-Jmol images, several are black (not displayed). Is this a memory problem? Is there
a way to force the plots to be static images instead of live JMol applets.
Sorry to say this but if this is not fixed I won't be able to use Sage for undergraduate teaching as
I must be able to post PDF's of examples easily!
Prof. Adam Hausknecht
Department of Mathematics
UMass DartmouthahausknechtTue, 04 Oct 2011 17:11:17 -0500https://ask.sagemath.org/question/8357/