According to https://stackoverflow.com/a/50095314/2363712, one may initialize a Cython cdef C-array using the [:]
notation:
cdef double cpc_x [16]
cpc_x[:] = 0.0
However, when I compile the code above, I get the error:
sh$ cython3 --version
Cython version 0.26.1
sh$ cython3 -a a.pyx
Error compiling Cython file:
------------------------------------------------------------
...
cdef double cpc_x [16]
cpc_x[:] = 0.0
^
------------------------------------------------------------
a.pyx:2:11: Cannot assign type 'double' to 'double [16]'
What did I do wrong?