Lines Matching defs:SparseWeightVector
37 class SparseWeightVector {
42 SparseWeightVector() {
45 ~SparseWeightVector() {}
46 explicit SparseWeightVector(const SparseWeightVector<Key, Hash> &other) {
49 void operator=(const SparseWeightVector<Key, Hash> &other) {
52 void CopyFrom(const SparseWeightVector<Key, Hash> &other) {
116 void LoadWeightVector(const SparseWeightVector<Key, Hash> &vec) {
133 const SparseWeightVector<Key, Hash> &w1,
136 const SparseWeightVector<Key, Hash> &w1,
139 const SparseWeightVector<Key, Hash> &w1,
141 void MultWeightUpdate(const SparseWeightVector<Key, Hash> &w1);
142 double DotProduct(const SparseWeightVector<Key, Hash> &s) const;
150 const SparseWeightVector<Key, Hash> &w1,
152 void MultWeightUpdateBounded(const SparseWeightVector<Key, Hash> &w1);
189 // Outputs a SparseWeightVector, for debugging.
192 const SparseWeightVector<Key, Hash> &vector) {
193 typename SparseWeightVector<Key, Hash>::Wmap w_map = vector.GetMap();
195 for (typename SparseWeightVector<Key, Hash>::Witer_const iter = w_map.begin();