Darsh Ranjan
unread,Oct 31, 2016, 12:59:11 PM10/31/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cython...@googlegroups.com
> # NoLimitOrionPdfCurve
> cdef extern from "pdf_curve/PdfCurves/src/NoLimitOrionPdfCurve.h":
> cpdef cppclass NoLimitOrionPdfCurve:
> NoLimitOrionPdfCurve()
> void createCurve(PyRfd rfd, vector[double]);
> void NoLimitOrionPdfCurve::createCurve(const Rfd& pData, const vector<double>& weights)
The cdef declaration should match the C++ declaration. In particular,
the C++-defined createCurve method accepts a const reference to an Rfd
instance, not a PyRfd instance (which it has no knowledge of).
In other words:
# NoLimitOrionPdfCurve
cdef extern from "pdf_curve/PdfCurves/src/NoLimitOrionPdfCurve.h":
cpdef cppclass NoLimitOrionPdfCurve:
NoLimitOrionPdfCurve()
void createCurve(const Rfd& rfd, const vector[double]&);