interpret_reduction(): Show simplex value
[libstick.git] / include / libstick-0.1 / persistence.h
index 49ddb9db4a68947c7b871dafe9cff79cb694f2b6..ea7369331bab105ba1e9903c9b5a69d611439bd8 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. */
@@ -195,7 +200,7 @@ class persistence {
                         break;
                 }
 
-                os << std::endl;
+                os << "(value: " << order.get_simplex(c).value << ")" << std::endl;
                 os << "  boundary: " << bm.get_column(c) << std::endl;
 
                 typename boolean_colmatrix<IT>::column_type col = rbm.get_column(c);