diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-07-28 12:11:44 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-07-28 12:11:44 -0400 |
commit | 9052682200365b64115f2f88eb02cb150dc7ade4 (patch) | |
tree | 8e9609daeaa93f0edf421114c5cdbed016709332 /python/src/utils.pxd | |
parent | 5276e368ad643434fd73527329ed70507ee49dfc (diff) | |
parent | 455ca8bc1406ec2f6554fce9be7488bb3cca75dd (diff) |
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'python/src/utils.pxd')
-rw-r--r-- | python/src/utils.pxd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/src/utils.pxd b/python/src/utils.pxd index f4da686b..a1a4799b 100644 --- a/python/src/utils.pxd +++ b/python/src/utils.pxd @@ -17,7 +17,9 @@ cdef extern from "utils/logval.h": cdef cppclass LogVal[T]: double as_float() - double log(LogVal[double]&) + ctypedef LogVal[double] prob_t + + double log(prob_t&) cdef extern from "utils/wordid.h": ctypedef int WordID @@ -33,7 +35,6 @@ cdef extern from "utils/sparse_vector.h": const_iterator(FastSparseVector[T]&, bint is_end) pair[unsigned, T]* ptr "operator->" () const_iterator& operator++() - bint operator==(const_iterator&) bint operator!=(const_iterator&) FastSparseVector() FastSparseVector(FastSparseVector[T]&) |