Cython: error adding complex[double] to double

雨燕双飞 提交于 2019-12-01 14:29:16

I've got it working. See cython ticket https://github.com/cython/cython/issues/1643

It is a combination of moving

complex[T] operator+(complex[T]&, T&) 

out of cppclass definition, changing it to

complex[T] operator+[T](complex[T]&, T&)

as suggested in the question and @DavidW's idea of cimport *

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!