Skip to content
Browse files

pdfs: make CPdf and Pdf protected methods accessible from Python space

  • Loading branch information...
1 parent 96e3913 commit c800313abf89d98854ddca9b60e486fdb53e2c35 @strohel committed Aug 20, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 pybayes/pdfs.pxd
View
8 pybayes/pdfs.pxd
@@ -44,13 +44,13 @@ cdef class CPdf(object):
cpdef np.ndarray sample(self, np.ndarray cond = *)
cpdef np.ndarray samples(self, int n, np.ndarray cond = *)
- cdef bint _check_cond(self, np.ndarray cond) except False
- cdef bint _check_x(self, np.ndarray x) except False
- cdef bint _set_rvs(self, int exp_shape, rv, int exp_cond_shape, cond_rv) except False
+ cpdef bint _check_cond(self, np.ndarray cond) except False
+ cpdef bint _check_x(self, np.ndarray x) except False
+ cpdef bint _set_rvs(self, int exp_shape, rv, int exp_cond_shape, cond_rv) except False
cdef class Pdf(CPdf):
- cdef bint _set_rv(self, int exp_shape, rv) except False
+ cpdef bint _set_rv(self, int exp_shape, rv) except False
cdef class UniPdf(Pdf):

0 comments on commit c800313

Please sign in to comment.
Something went wrong with that request. Please try again.