Add persistence::get_order()
authorStefan Huber <shuber@sthu.org>
Wed, 20 Nov 2013 15:38:22 +0000 (16:38 +0100)
committerStefan Huber <shuber@sthu.org>
Tue, 14 Jan 2014 15:19:07 +0000 (16:19 +0100)
include/libstick-0.1/persistence.h

index 49ddb9db4a68947c7b871dafe9cff79cb694f2b6..cef76c0929b3d85dfefc2aeb244ffa295c352e21 100644 (file)
@@ -94,6 +94,11 @@ class persistence {
             done_diagrams = false;
         }
 
+        /** Get simplicial order of this persistence object. */
+        const simplex_order& get_order() const {
+            return order;
+        }
+
         /** Get boundary matrix 'bm' of 'order', compute reduces boundary
          * matrix 'rbm', and the transformation matrix 'tm' such that rbm = bm *
          * tm. */