简体   繁体   中英

What's the difference of double a[] and double[] a in cython?

cdef public int myfun(double x, double y, double z[], double[] k):
    z[0] = 1.2
    z[1] = x + y
    k[0] = 1.2
    k[1] = x + y
    return 0

Do they belong to different types?

Nothing. Just different ways of declaring the same type of array. The syntax of which is inherited from C.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM