The DiGraph constructor checks the data to determine the graph
characteristics from the data if they are left as defaults, which for
multiedges is None. In your case you are constructing a graph with vertices
but no edges for which the constructorsets multiedges to True. (digraph.py
lines 809-8
I am clearly missing something very obvious but why does this happily
compile:
%cython
cdef extern from "mpfr.h":
ctypedef void* mpfr_t[1]
cdef int mpfr_init(mpfr_t)
cdef int mpfr_clear(mpfr_t)
def testmpfr(double x):
cdef mpfr_t input
mpfr_init(input)
mpfr_clear(input)
B
On Feb 14, 12:02 am, MartinX wrote:
> On Feb 13, 12:42 pm, MartinX wrote:
>
> With the right setup.py script in place I have successfully compiled
> my test prog. I will probably modify sage.misc.cython.py to do the job
> for me.
>
> Martin
Not sure what I did, but my
On Feb 13, 12:42 pm, MartinX wrote:
> Trying to get to grips with MPComplex in cython with no success. I get
> a compile error on trying cimport. This simple script in the
> notebook:
To answer my own question, it won't using %cython in the notebook, or
using sage.misc.cython, whi
Trying to get to grips with MPComplex in cython with no success. I get
a compile error on trying cimport. This simple script in the
notebook:
%cython
import sage.rings.complex_mpc
cimport sage.rings.complex_mpc
cdef test():
pass
Results in:
creating build
creating build/temp.linux-x86_64-2.