bindings/python/cohomology-persistence.h
author Aravindakshan Babu <akshan@stanford.edu>
Fri, 02 Jul 2010 04:19:29 -0700
branchdev
changeset 215 e94d521b72bb
parent 146 4e27f1f7c169
permissions -rw-r--r--
Added code to expose the persistence_diagram class, the bottleneck_distance function and the point class to python. Most of the commonly used methods for each class have been exported. The constructor for point now requires that a data argument be provided along with x and y coord. This needs to be made optional. The constructor for persistence_diagram could possibly be rewritten as well.

#ifndef __PYTHON_ZIGZAG_PERSISTENCE_H__
#define __PYTHON_ZIGZAG_PERSISTENCE_H__

#include <topology/cohomology-persistence.h>
#include <boost/python.hpp>

#include "birthid.h"

namespace dionysus {
namespace python   {

typedef         CohomologyPersistence<BirthID>  CohomPersistence;

} } // namespace dionysus::python

#endif