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
commit9d393298ce21159907884ea9b7318c52585409ee (patch)
treecab034a01642abb2a067818f9c8f29999c4c6797 /vest
parentb6634dff2cd515d9e6f95416512db893a08bde29 (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";
}
}