#进口 来自libcpp.vector cimport vector 从libcpp.complex cimport复合体转换为cppcomplex ctypedef my_complex=cpp_complex[double] #代码 cdef矢量[my_complex]vec
cdef复数[::1]mem_view=???
#进口 来自libcpp.vector cimport vector 从libcpp.complex cimport复合体转换为cppcomplex ctypedef my_complex=cpp_complex[double] #代码 cdef矢量[my_complex]vec
cdef复数[::1]mem_view=???
cdef复数[::1]mem_view=<complex[:vec.size()]>(<complex*>vec.data())