summaryrefslogtreecommitdiff
path: root/decoder/feature_vector.h
blob: be378a6a6513305d24d75281d26836b900d8b0b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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;

inline void sparse_to_dense(WeightVector const& wv,DenseWeightVector *dv) {
  wv.init_vector(dv);
}

#endif