Problem with MemoryView of Fused Types if Array is specified as C-/F-Contiguous #1701

Open
gkabbe opened this Issue May 9, 2017 · 0 comments

Comments

Projects
None yet
1 participant

gkabbe commented May 9, 2017

I fail to compile the following code:

cdef cython.floating f1(cython.floating [:] vec):
    return vec[0]


def test(cython.floating [:, ::1] vec):
    return f1(vec[0])

It works if cython.floating is replaced by double (for example), and it works if one writes def test(cython.floating [:, :] vec), so I guess it should also work in the above example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment