commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Juntunen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MATH-1442) PolyhedronsSet.getSize() is incorrect for full space
Date Wed, 24 Jan 2018 03:22:00 GMT

     [ https://issues.apache.org/jira/browse/MATH-1442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matt Juntunen updated MATH-1442:
--------------------------------
    Description: 
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}}

 

Pull request: https://github.com/apache/commons-math/pull/75

  was:
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}}


> 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: 4.0, 3.5, 3.6
>            Reporter: Matt Juntunen
>            Priority: Major
>             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}}
>  
> Pull request: https://github.com/apache/commons-math/pull/75



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

Mime
View raw message