diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-04-22 13:41:10 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-04-22 13:41:10 -0400 |
commit | 6771428616bc4190fc1297388c0bb659dfd5d4c5 (patch) | |
tree | 922244e49e520bf286c1aadc0e1f52811144b2b8 /utils | |
parent | 9986bc8fe11435b2134350bba24aa0139d2665ac (diff) |
fix dup code
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fast_sparse_vector.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/utils/fast_sparse_vector.h b/utils/fast_sparse_vector.h index b8b3df1f..00d3b74f 100644 --- a/utils/fast_sparse_vector.h +++ b/utils/fast_sparse_vector.h @@ -368,26 +368,4 @@ namespace performance_checks { BOOST_STATIC_ASSERT(sizeof(FastSparseVector<float>) == L2_CACHE_LINE); }; -#include "fdict.h" - -template <class O, typename T> -inline void print(O &o,const FastSparseVector<T>& v, const char* kvsep="=",const char* pairsep=" ",const char* pre="",const char* post="") { - o << pre; - bool first=true; - for (typename FastSparseVector<T>::const_iterator i=v.begin(),e=v.end();i!=e;++i) { - if (first) - first=false; - else - o<<pairsep; - o<<FD::Convert(i->first)<<kvsep<<i->second; - } - o << post; -} - -template <typename T> -inline std::ostream& operator<<(std::ostream& out, const FastSparseVector<T>& v) { - print(out, v); - return out; -} - #endif |