summaryrefslogtreecommitdiff
path: root/vest
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-04-22 13:38:32 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2011-04-22 13:38:32 -0400
commit9986bc8fe11435b2134350bba24aa0139d2665ac (patch)
treed27b526d929b788dcdc2b1ab949c608a4751edfe /vest
parent5061409a26050b9a4724b50b30d66d3c3a583951 (diff)
make compatible with FastSparseVector
Diffstat (limited to 'vest')
-rw-r--r--vest/line_optimizer.h2
-rw-r--r--vest/mr_vest_generate_mapper_input.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/vest/line_optimizer.h b/vest/line_optimizer.h
index 1b5382cd..99a591f4 100644
--- a/vest/line_optimizer.h
+++ b/vest/line_optimizer.h
@@ -3,10 +3,10 @@
#include <vector>
+#include "sparse_vector.h"
#include "error_surface.h"
#include "sampler.h"
-template <typename T> class SparseVector;
class Weights;
struct LineOptimizer {
diff --git a/vest/mr_vest_generate_mapper_input.cc b/vest/mr_vest_generate_mapper_input.cc
index 68191a6a..b84c44bc 100644
--- a/vest/mr_vest_generate_mapper_input.cc
+++ b/vest/mr_vest_generate_mapper_input.cc
@@ -87,9 +87,9 @@ struct oracle_directions {
for (int i = 0; i < dev_set_size; ++i)
for (int j = 0; j < directions.size(); ++j) {
cout << forest_file(i) <<" " << i<<" ";
- origin.print(cout,"=",";");
+ print(cout,origin,"=",";");
cout<<" ";
- directions[j].print(cout,"=",";");
+ print(cout,directions[j],"=",";");
cout<<"\n";
}
}