[
https://issues.apache.org/jira/browse/MATH-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17429684#comment-17429684
]
Gilles Sadowski commented on MATH-1630:
---------------------------------------
Functionality implemented as of commit e052d9dc532be69c75b24973cf585865c02b63b2
("master" branch). Please review.
On my machine, the build fails with
{noformat}
mvn -Dorg.apache.commons.math.jdkmath=JDK test
{noformat}
(due to stringent tolerance in unit tests).
It passes on
[Jenkins|https://builds.apache.org/job/Commons/job/commons-math/157/] as the
default (when the property is undefined) is to use the {{CM}} implementations.
> AccurateMath vs JDK's Math
> --------------------------
>
> Key: MATH-1630
> URL: https://issues.apache.org/jira/browse/MATH-1630
> Project: Commons Math
> Issue Type: Improvement
> Reporter: Gilles Sadowski
> Assignee: Gilles Sadowski
> Priority: Minor
> Fix For: 4.0
>
>
> Allow runtime switch between the JDK and CM implementations of the methods
> defined in the [{{Math}}
> class|https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html].
> I [propose|https://markmail.org/message/uw64jproplfa4xqr] to create a
> {{JdkMath}} class that will store references to either JDK's methods in
> {{Math}} or CM's methods in {{AccurateMath}}, based on a system property.
> Thus, all CM codes will be updated to call the methods declared in
> {{JdkMath}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)