diff options
author | MathieuCarriere <mathieu.carriere3@gmail.com> | 2022-11-15 11:14:07 +0100 |
---|---|---|
committer | MathieuCarriere <mathieu.carriere3@gmail.com> | 2022-11-15 11:14:07 +0100 |
commit | 1628496677f5abaa7f5d3c7fe690927f4f9a3215 (patch) | |
tree | 3d27b08617be0b7eed8fed0228af1d10a88fede3 /src/python/gudhi/rips_complex.pyx | |
parent | 939671ea085de4527e0f33a9a7233d8243ff7c08 (diff) | |
parent | 969f3daea0eed3deb26c47365b1a03a9629d48b5 (diff) |
Merge branch 'master' of https://github.com/GUDHI/gudhi-devel into perslay
Diffstat (limited to 'src/python/gudhi/rips_complex.pyx')
-rw-r--r-- | src/python/gudhi/rips_complex.pyx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/python/gudhi/rips_complex.pyx b/src/python/gudhi/rips_complex.pyx index c3470292..d748f91e 100644 --- a/src/python/gudhi/rips_complex.pyx +++ b/src/python/gudhi/rips_complex.pyx @@ -41,31 +41,30 @@ cdef class RipsComplex: cdef Rips_complex_interface thisref # Fake constructor that does nothing but documenting the constructor - def __init__(self, points=None, distance_matrix=None, + def __init__(self, *, points=None, distance_matrix=None, max_edge_length=float('inf'), sparse=None): """RipsComplex constructor. - :param max_edge_length: Rips value. - :type max_edge_length: float - :param points: A list of points in d-Dimension. - :type points: list of list of float + :type points: List[List[float]] Or :param distance_matrix: A distance matrix (full square or lower triangular). - :type points: list of list of float + :type distance_matrix: List[List[float]] And in both cases + :param max_edge_length: Rips value. + :type max_edge_length: float :param sparse: If this is not None, it switches to building a sparse Rips and represents the approximation parameter epsilon. :type sparse: float """ # The real cython constructor - def __cinit__(self, points=None, distance_matrix=None, + def __cinit__(self, *, points=None, distance_matrix=None, max_edge_length=float('inf'), sparse=None): if sparse is not None: if distance_matrix is not None: |