From b17e55afc11caff584573a9b3b2f86493b9642b8 Mon Sep 17 00:00:00 2001 From: "jan.reininghaus" Date: Wed, 30 Apr 2014 08:57:41 +0000 Subject: new vector_heap Representation git-svn-id: https://phat.googlecode.com/svn/trunk@164 8e3bb3c2-eed4-f18f-5264-0b6c94e6926d --- src/phat.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/phat.cpp') diff --git a/src/phat.cpp b/src/phat.cpp index 8fcd42c..b099b59 100644 --- a/src/phat.cpp +++ b/src/phat.cpp @@ -19,6 +19,7 @@ #include #include +#include #include #include #include @@ -34,7 +35,7 @@ #include -enum Representation_type {VECTOR_VECTOR, VECTOR_SET, SPARSE_PIVOT_COLUMN, FULL_PIVOT_COLUMN, BIT_TREE_PIVOT_COLUMN, VECTOR_LIST, HEAP_PIVOT_COLUMN}; +enum Representation_type { VECTOR_VECTOR, VECTOR_HEAP, VECTOR_SET, SPARSE_PIVOT_COLUMN, FULL_PIVOT_COLUMN, BIT_TREE_PIVOT_COLUMN, VECTOR_LIST, HEAP_PIVOT_COLUMN }; enum Algorithm_type {STANDARD, TWIST, ROW, CHUNK, CHUNK_SEQUENTIAL, SPECTRAL_SEQUENCE }; void print_help() { @@ -47,7 +48,7 @@ void print_help() { std::cerr << "--help -- prints this screen" << std::endl; std::cerr << "--verbose -- verbose output" << std::endl; std::cerr << "--dualize -- use dualization approach" << std::endl; - std::cerr << "--vector_vector, --vector_set, --vector_list, --full_pivot_column, --sparse_pivot_column, --heap_pivot_column, --bit_tree_pivot_column -- selects a representation data structure for boundary matrices (default is '--bit_tree_pivot_column')" << std::endl; + std::cerr << "--vector_vector, --vector_heap, --vector_set, --vector_list, --full_pivot_column, --sparse_pivot_column, --heap_pivot_column, --bit_tree_pivot_column -- selects a representation data structure for boundary matrices (default is '--bit_tree_pivot_column')" << std::endl; std::cerr << "--standard, --twist, --chunk, --chunk_sequential, --spectral_sequence, --row -- selects a reduction algorithm (default is '--twist')" << std::endl; } @@ -71,6 +72,7 @@ void parse_command_line( int argc, char** argv, bool& use_binary, Representation else if( option == "--binary" ) use_binary = true; else if( option == "--dualize" ) dualize = true; else if( option == "--vector_vector" ) representation = VECTOR_VECTOR; + else if( option == "--vector_heap" ) representation = VECTOR_HEAP; else if( option == "--vector_set" ) representation = VECTOR_SET; else if( option == "--vector_list" ) representation = VECTOR_LIST; else if( option == "--full_pivot_column" ) representation = FULL_PIVOT_COLUMN; @@ -177,6 +179,7 @@ int main( int argc, char** argv ) switch( representation ) { case VECTOR_VECTOR: COMPUTE_PAIRING(vector_vector) break; + case VECTOR_HEAP: COMPUTE_PAIRING( vector_heap ) break; case VECTOR_SET: COMPUTE_PAIRING(vector_set) break; case VECTOR_LIST: COMPUTE_PAIRING(vector_list) break; case FULL_PIVOT_COLUMN: COMPUTE_PAIRING(full_pivot_column) break; -- cgit v1.2.3