From 9986bc8fe11435b2134350bba24aa0139d2665ac Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Fri, 22 Apr 2011 13:38:32 -0400 Subject: make compatible with FastSparseVector --- vest/line_optimizer.h | 2 +- vest/mr_vest_generate_mapper_input.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'vest') 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 +#include "sparse_vector.h" #include "error_surface.h" #include "sampler.h" -template 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"; } } -- cgit v1.2.3