Skip to content

Commit

Permalink
update names in python wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mglisse committed Jul 30, 2024
1 parent e2cd6b5 commit 381869f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/python/gudhi/_ripser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ PYBIND11_MAKE_OPAQUE(Vf);
PYBIND11_MAKE_OPAQUE(Vd);

template<class T>struct Numpy_euclidean {
typedef Tag_other category;
typedef Tag_other Category;
typedef int vertex_t;
typedef T value_t;

Expand All @@ -47,7 +47,7 @@ template<class T>struct Numpy_euclidean {
};

template<class T>struct Full {
typedef Tag_dense category;
typedef Tag_dense Category;
typedef int vertex_t;
typedef T value_t;
decltype(std::declval<py::array_t<T>&>().template unchecked<2>()) data;
Expand Down Expand Up @@ -122,7 +122,7 @@ py::list lower(py::object low_mat, int max_dimension, double max_edge_length, un
};

std::optional<py::gil_scoped_release> release_local(std::in_place);
compressed_distance_matrix<DParams<int, double>, LOWER_TRIANGULAR> dist(std::move(distances));
Compressed_distance_matrix<DParams<int, double>, LOWER_TRIANGULAR> dist(std::move(distances));
release_local.reset();

return doit(std::move(dist), max_dimension, max_edge_length, homology_coeff_field);
Expand All @@ -139,7 +139,7 @@ py::list sparse(py::array_t<V> is_, py::array_t<V> js_, py::array_t<T> fs_, int
throw std::runtime_error("vertices and filtrations must have the same shape");

typedef DParams<V, T> P;
typedef sparse_distance_matrix<P> Dist;
typedef Sparse_distance_matrix<P> Dist;
typedef typename Dist::vertex_diameter_t vertex_diameter_t;

std::optional<py::gil_scoped_release> release_local(std::in_place);
Expand Down

0 comments on commit 381869f

Please sign in to comment.