diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-28 00:44:55 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-28 00:44:55 +0000 |
commit | 95e8c3a5aa5e1221bc054fcf50524b94839bc531 (patch) | |
tree | 59e83d1990f0c36d193c682d06cbda90cd6ff9bd /utils | |
parent | 1fcb1b1876be8097c78a248749c23da170e76c7d (diff) |
debugging no lhs trie index built
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@629 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/best.h | 4 | ||||
-rw-r--r-- | utils/d_ary_heap.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/utils/best.h b/utils/best.h index 689e7600..ed15e0be 100755 --- a/utils/best.h +++ b/utils/best.h @@ -5,6 +5,10 @@ typedef MaxPlus<double> best_t; +inline bool better(best_t const& a,best_t const& b) { + return a.v_>b.v_; // intentionally reversed, so default min-heap, sort, etc. put best first. +} + inline bool operator <(best_t const& a,best_t const& b) { return a.v_>b.v_; // intentionally reversed, so default min-heap, sort, etc. put best first. } diff --git a/utils/d_ary_heap.h b/utils/d_ary_heap.h index 49e040d8..10d04782 100644 --- a/utils/d_ary_heap.h +++ b/utils/d_ary_heap.h @@ -317,11 +317,11 @@ } private: - Equal equal; Better better; Container data; DistanceMap distance; IndexInHeapPropertyMap index_in_heap; + Equal equal; // Get the parent of a given node in the heap static inline size_type parent(size_type index) { |