You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pplpy library does not support extension type construction from an already constructed C++ object. The following construction should be supported
from ppl.ppl_decl cimport PPL_Variable
from ppl.linear_algebra cimport Variable
cdef PPL_Variable * x = new PPL_Variable(0)
cdef Variable py_x = Variable.__new__(Variable)
py_x.thisptr = x
The reason why it is not currently possible is that the initialization is done within the __cinit__ method instead of __init__.
Also, most of the binary operators are not declared in ppl_decl.pxd. It is for example impossible to create linear expression from pure C++.
The text was updated successfully, but these errors were encountered:
moved from gitlab issue #2
The pplpy library does not support extension type construction from an already constructed C++ object. The following construction should be supported
The reason why it is not currently possible is that the initialization is done within the
__cinit__
method instead of__init__
.Also, most of the binary operators are not declared in ppl_decl.pxd. It is for example impossible to create linear expression from pure C++.
The text was updated successfully, but these errors were encountered: