From: Vivien Maisonneuve Date: Tue, 19 Aug 2014 13:26:43 +0000 (+0200) Subject: Add warning in widening documentation X-Git-Tag: 1.0~42 X-Git-Url: https://scm.cri.ensmp.fr/git/linpy.git/commitdiff_plain/675e4575c2fe1315d30b845f9ab6168da30085e3?ds=inline Add warning in widening documentation --- diff --git a/doc/reference.rst b/doc/reference.rst index 4e71658..18e69c0 100644 --- a/doc/reference.rst +++ b/doc/reference.rst @@ -282,6 +282,8 @@ This space can be unbounded. Compute the *standard widening* of two polyhedra, à la Halbwachs. + In its current implementation, this method is slow and should not be used on large polyhedra. + .. data:: Empty diff --git a/linpy/polyhedra.py b/linpy/polyhedra.py index 8426d32..9fdf6e7 100644 --- a/linpy/polyhedra.py +++ b/linpy/polyhedra.py @@ -173,6 +173,9 @@ class Polyhedron(Domain): def widen(self, other): """ Compute the standard widening of two polyhedra, à la Halbwachs. + + In its current implementation, this method is slow and should not be + used on large polyhedra. """ if not isinstance(other, Polyhedron): raise ValueError('argument must be a Polyhedron instance')