Added pair_simplices() to Filtration (without arguments)
authorDmitriy Morozov <morozov@cs.duke.edu>
Mon, 25 Dec 2006 12:28:13 -0500
changeset 9 4ed0ecccba8c
parent 8 7b688bc77e86
child 10 475c019ac1e4
Added pair_simplices() to Filtration (without arguments)
examples/triangle/triangle.cpp
include/filtration.h
--- a/examples/triangle/triangle.cpp	Fri Dec 22 12:52:35 2006 -0500
+++ b/examples/triangle/triangle.cpp	Mon Dec 25 12:28:13 2006 -0500
@@ -41,7 +41,7 @@
 	fillTriangleSimplices(tf);
 	
 	tf.fill_simplex_index_map();
-	tf.pair_simplices(tf.begin(), tf.end());
+	tf.pair_simplices();
 	v.start_vines(tf.begin(), tf.end());
 	
 	std::cout << "Filtration size: " << tf.size() << std::endl;
--- a/include/filtration.h	Fri Dec 22 12:52:35 2006 -0500
+++ b/include/filtration.h	Mon Dec 25 12:28:13 2006 -0500
@@ -61,6 +61,7 @@
 		/// @{
 		/// Computes RU decomposition of the simplices in [bg, end) range, assuming that everything before bg has been paired 
 		void 							pair_simplices(Index bg, Index end);
+		void 							pair_simplices()							{ pair_simplices(begin(), end()); }
 		bool							transpose(Index i);
 		bool							is_paired() const;
 		Index							append(const Simplex& s);					///< Appends s to the filtration