@@ -130,6 +130,7 @@ cdef extern from "<symengine/symengine_rcp.h>" namespace "SymEngine":
130
130
T& operator* () nogil except +
131
131
132
132
RCP[const Symbol] rcp_static_cast_Symbol " SymEngine::rcp_static_cast<const SymEngine::Symbol>" (RCP[const Basic] & b) nogil
133
+ RCP[const PySymbol] rcp_static_cast_PySymbol " SymEngine::rcp_static_cast<const SymEngine::PySymbol>" (RCP[const Basic] & b) nogil
133
134
RCP[const Integer] rcp_static_cast_Integer " SymEngine::rcp_static_cast<const SymEngine::Integer>" (RCP[const Basic] & b) nogil
134
135
RCP[const Rational] rcp_static_cast_Rational " SymEngine::rcp_static_cast<const SymEngine::Rational>" (RCP[const Basic] & b) nogil
135
136
RCP[const Complex] rcp_static_cast_Complex " SymEngine::rcp_static_cast<const SymEngine::Complex>" (RCP[const Basic] & b) nogil
@@ -257,6 +258,7 @@ cdef extern from "<symengine/basic.h>" namespace "SymEngine":
257
258
bool is_a_Log " SymEngine::is_a<SymEngine::Log>" (const Basic & b) nogil
258
259
bool is_a_PyNumber " SymEngine::is_a<SymEngine::PyNumber>" (const Basic & b) nogil
259
260
bool is_a_ATan2 " SymEngine::is_a<SymEngine::ATan2>" (const Basic & b) nogil
261
+ bool is_a_PySymbol " SymEngine::is_a_sub<SymEngine::PySymbol>" (const Basic & b) nogil
260
262
261
263
RCP[const Basic] expand(RCP[const Basic] & o) nogil except +
262
264
@@ -292,6 +294,11 @@ cdef extern from "<symengine/pywrapper.h>" namespace "SymEngine":
292
294
cdef cppclass PyFunction:
293
295
PyObject* get_py_object()
294
296
297
+ cdef extern from " <symengine/pywrapper.h>" namespace " SymEngine" :
298
+ cdef cppclass PySymbol(Symbol):
299
+ PySymbol(string name, PyObject* pyobj)
300
+ PyObject* get_py_object()
301
+
295
302
cdef extern from " <symengine/integer.h>" namespace " SymEngine" :
296
303
cdef cppclass Integer(Number):
297
304
Integer(int i) nogil
@@ -376,6 +383,7 @@ cdef extern from "<symengine/pow.h>" namespace "SymEngine":
376
383
cdef extern from " <symengine/basic.h>" namespace " SymEngine" :
377
384
# We need to specialize these for our classes:
378
385
RCP[const Basic] make_rcp_Symbol " SymEngine::make_rcp<const SymEngine::Symbol>" (string name) nogil
386
+ RCP[const Basic] make_rcp_PySymbol " SymEngine::make_rcp<const SymEngine::PySymbol>" (string name, PyObject * pyobj) nogil
379
387
RCP[const Basic] make_rcp_Constant " SymEngine::make_rcp<const SymEngine::Constant>" (string name) nogil
380
388
RCP[const Basic] make_rcp_Integer " SymEngine::make_rcp<const SymEngine::Integer>" (int i) nogil
381
389
RCP[const Basic] make_rcp_Integer " SymEngine::make_rcp<const SymEngine::Integer>" (integer_class i) nogil
0 commit comments