diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-24 21:17:51 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-24 21:17:51 +0000 |
commit | 1fbdaa4d49acf90d2124aef8810d723ddbb0dad5 (patch) | |
tree | e3871052691166849e88ff159a64dafff9373e9b /decoder/feature_vector.h | |
parent | 01a4f22830758857df1f991b8377553afba60c59 (diff) |
sparse_vector non-const [], consistently use default ctor, operator bool instead of explicit 0
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@398 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/feature_vector.h')
-rwxr-xr-x | decoder/feature_vector.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/decoder/feature_vector.h b/decoder/feature_vector.h new file mode 100755 index 00000000..1b272506 --- /dev/null +++ b/decoder/feature_vector.h @@ -0,0 +1,14 @@ +#ifndef _FEATURE_VECTOR_H_ +#define _FEATURE_VECTOR_H_ + +#include <vector> +#include "sparse_vector.h" +#include "fdict.h" + +typedef double Featval; +typedef SparseVectorList<Featval> FeatureVectorList; +typedef SparseVector<Featval> FeatureVector; +typedef SparseVector<Featval> WeightVector; +typedef std::vector<Featval> DenseWeightVector; + +#endif |