From 80686d4e567bae579ea39e009826a2de92cd4ace Mon Sep 17 00:00:00 2001 From: redpony Date: Wed, 11 Aug 2010 02:37:10 +0000 Subject: major refactor, break bad circular deps git-svn-id: https://ws10smt.googlecode.com/svn/trunk@509 ec762483-ff6d-05da-a07a-a48fb63a330f --- utils/feature_vector.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 utils/feature_vector.h (limited to 'utils/feature_vector.h') diff --git a/utils/feature_vector.h b/utils/feature_vector.h new file mode 100755 index 00000000..be378a6a --- /dev/null +++ b/utils/feature_vector.h @@ -0,0 +1,18 @@ +#ifndef _FEATURE_VECTOR_H_ +#define _FEATURE_VECTOR_H_ + +#include +#include "sparse_vector.h" +#include "fdict.h" + +typedef double Featval; +typedef SparseVectorList FeatureVectorList; +typedef SparseVector FeatureVector; +typedef SparseVector WeightVector; +typedef std::vector DenseWeightVector; + +inline void sparse_to_dense(WeightVector const& wv,DenseWeightVector *dv) { + wv.init_vector(dv); +} + +#endif -- cgit v1.2.3