You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Juntunen (JIRA)" <ji...@apache.org> on 2018/01/24 02:55:00 UTC

[jira] [Created] (MATH-1442) PolyhedronsSet.getSize() is incorrect for full space

Matt Juntunen created MATH-1442:
-----------------------------------

             Summary: PolyhedronsSet.getSize() is incorrect for full space
                 Key: MATH-1442
                 URL: https://issues.apache.org/jira/browse/MATH-1442
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 3.6, 3.5, 4.0
            Reporter: Matt Juntunen
             Fix For: 4.0


The getSize() method in PolyhedronsSet returns 0 for instances representing the full space. It should return Double.POSITIVE_INFINITY.

{{Ex:}}{{PolyhedronsSet poly = new PolyhedronsSet(1e-10);}}{{poly.isFull(); // returns true}}{{poly.getSize(); // returns 0.0}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)