summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjan.reininghaus <jan.reininghaus@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2014-05-06 08:31:33 +0000
committerjan.reininghaus <jan.reininghaus@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2014-05-06 08:31:33 +0000
commit9addb98a9b27147accea8df71bc9f618c4e0d938 (patch)
tree28c8294577527086e470db74760a072d535b113b
parent92ddd1feed9794eaa44feb0c65842dd58c03ae3e (diff)
git-svn-id: https://phat.googlecode.com/svn/trunk@170 8e3bb3c2-eed4-f18f-5264-0b6c94e6926d
-rw-r--r--src/benchmark.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/benchmark.cpp b/src/benchmark.cpp
index c6ff24a..c40a8fe 100644
--- a/src/benchmark.cpp
+++ b/src/benchmark.cpp
@@ -185,7 +185,7 @@ void benchmark_latex( std::string input_filename, bool use_binary, Ansatz_type a
//double running_time = omp_get_wtime() - reduction_timer + dualization_time;
double running_time = omp_get_wtime( ) - reduction_timer;
double running_time_rounded = floor( running_time * 10.0 + 0.5 ) / 10.0;
- std::cout << "& "<< setiosflags( std::ios::fixed ) << setiosflags( std::ios::showpoint ) << std::setprecision( 1 ) << running_time_rounded << " ";
+ std::cout << "&& "<< setiosflags( std::ios::fixed ) << setiosflags( std::ios::showpoint ) << std::setprecision( 1 ) << running_time_rounded << " ";
}
#define COMPUTE(Representation) \
@@ -258,22 +258,23 @@ int main( int argc, char** argv )
for( int idx_input = 0; idx_input < input_filenames.size( ); idx_input++ ) {
std::cout << "\\begin{table}[ h ]" << std::endl;
std::cout << "\\begin{center}" << std::endl;
- std::cout << "\\begin{tabular}{";
- for( int idx = 0; idx < representations.size( ) + 1; idx++ )
- std::cout << "r";
+ std::cout << "\\begin{tabularx}{\\textwidth}{";
+ std::cout << "r";
+ for( int idx = 0; idx < representations.size( ); idx++ )
+ std::cout << "Xr";
std::cout << "}" << std::endl;
for( int idx_representation = 0; idx_representation < representations.size( ); idx_representation++ ) {
Representation_type representation = representations[ idx_representation ];
switch( representation ) {
- case VECTOR_VECTOR: std::cout << "& V "; break;
- case VECTOR_HEAP: std::cout << "& H "; break;
- case VECTOR_SET: std::cout << "& S "; break;
- case VECTOR_LIST: std::cout << "& L "; break;
- case FULL_PIVOT_COLUMN: std::cout << "& P-F "; break;
- case BIT_TREE_PIVOT_COLUMN: std::cout << "& P-BT "; break;
- case SPARSE_PIVOT_COLUMN: std::cout << "& P-S "; break;
- case HEAP_PIVOT_COLUMN: std::cout << "& P-H "; break;
+ case VECTOR_VECTOR: std::cout << "&& V "; break;
+ case VECTOR_HEAP: std::cout << "&& H "; break;
+ case VECTOR_SET: std::cout << "&& S "; break;
+ case VECTOR_LIST: std::cout << "&& L "; break;
+ case FULL_PIVOT_COLUMN: std::cout << "&& P-F "; break;
+ case BIT_TREE_PIVOT_COLUMN: std::cout << "&& P-BT "; break;
+ case SPARSE_PIVOT_COLUMN: std::cout << "&& P-S "; break;
+ case HEAP_PIVOT_COLUMN: std::cout << "&& P-H "; break;
}
}
std::cout << "\\\\" << std::endl;
@@ -312,7 +313,7 @@ int main( int argc, char** argv )
}
}
- std::cout << "\\end{tabular}" << std::endl;
+ std::cout << "\\end{tabularx}" << std::endl;
std::cout << "\\end{center}" << std::endl;
std::string sanitized_input_filename( input_filename );
std::replace( sanitized_input_filename.begin( ), sanitized_input_filename.end( ), '_', '-' );