[jira] [Commented] (MATH-1448) Make RealFieldElement implement Number
[ https://issues.apache.org/jira/browse/MATH-1448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16960624#comment-16960624 ] Gilles Sadowski commented on MATH-1448: --- bq. I probably won't use numbers Do you mean you have re-implemented everything that is now in "Commons Numbers"? bq. better Commons math implementation Design improvements, at least, mostly come from externalizing the low-level classes to "Commons Numbers". Unfortunately there is a lot of work just in rewriting the {{Field}}-related algorithms... :-( > Make RealFieldElement implement Number > -- > > Key: MATH-1448 > URL: https://issues.apache.org/jira/browse/MATH-1448 > Project: Commons Math > Issue Type: Wish >Reporter: Alexander Nozik >Priority: Trivial > > RealFieldElement in some cases could be used as a substitute for a generic > `Number` and it quite easy to make it implement `Number` interface. Perhaps > it would be better to inherit it form number to allow universal treatment. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (MATH-1448) Make RealFieldElement implement Number
[ https://issues.apache.org/jira/browse/MATH-1448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16960585#comment-16960585 ] Alexander Nozik commented on MATH-1448: --- Yes, basically, the better Commons math implementation, the better resulting wrapper library will work. So I am quite interested in quality of commons libraries. The problem is that it is hard to contribute to both projects simultaneously, so I am focused on kotlin side. I probably won't use numbers since it is much easier to do them in kotlin-multiplatform using external field operations instead of Java class inheritance (and I have already done most of it). On the other hand, I will definitely use rng and matrix operations. > Make RealFieldElement implement Number > -- > > Key: MATH-1448 > URL: https://issues.apache.org/jira/browse/MATH-1448 > Project: Commons Math > Issue Type: Wish >Reporter: Alexander Nozik >Priority: Trivial > > RealFieldElement in some cases could be used as a substitute for a generic > `Number` and it quite easy to make it implement `Number` interface. Perhaps > it would be better to inherit it form number to allow universal treatment. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (MATH-1448) Make RealFieldElement implement Number
[ https://issues.apache.org/jira/browse/MATH-1448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16960582#comment-16960582 ] Gilles Sadowski commented on MATH-1448: --- bq. I use Commons math/numbers/rng only as a back-end implementation IIUC, that means that implementing and improving things on the "Commons" side would benefit both sets of users (?). bq. it is not possible to back-port the most advanced design solutions from kotlin in java. But, still, the "back-end" could be shared, no? > Make RealFieldElement implement Number > -- > > Key: MATH-1448 > URL: https://issues.apache.org/jira/browse/MATH-1448 > Project: Commons Math > Issue Type: Wish >Reporter: Alexander Nozik >Priority: Trivial > > RealFieldElement in some cases could be used as a substitute for a generic > `Number` and it quite easy to make it implement `Number` interface. Perhaps > it would be better to inherit it form number to allow universal treatment. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (MATH-1448) Make RealFieldElement implement Number
[ https://issues.apache.org/jira/browse/MATH-1448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16960571#comment-16960571 ] Alexander Nozik commented on MATH-1448: --- Thanks, I've completely moved to Kotlin some time ago, so I use Commons math/numbers/rng only as a back-end implementation. Now I develop a numeric library for kotlin which uses a lot of design ideas from commons-math (they look much better in kotlin because of possibility of context-oriented design). Sadly, it is not possible to back-port the most advanced design solutions from kotlin in java. > Make RealFieldElement implement Number > -- > > Key: MATH-1448 > URL: https://issues.apache.org/jira/browse/MATH-1448 > Project: Commons Math > Issue Type: Wish >Reporter: Alexander Nozik >Priority: Trivial > > RealFieldElement in some cases could be used as a substitute for a generic > `Number` and it quite easy to make it implement `Number` interface. Perhaps > it would be better to inherit it form number to allow universal treatment. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (MATH-1448) Make RealFieldElement implement Number
[ https://issues.apache.org/jira/browse/MATH-1448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16960568#comment-16960568 ] Gilles Sadowski commented on MATH-1448: --- Please have a look at the [Field|https://gitbox.apache.org/repos/asf?p=commons-numbers.git;a=tree;f=commons-numbers-field/src/main/java/org/apache/commons/numbers/field] implementations in "Commons Numbers". The class that represent field elements extends {{Number}}. Review welcome. > Make RealFieldElement implement Number > -- > > Key: MATH-1448 > URL: https://issues.apache.org/jira/browse/MATH-1448 > Project: Commons Math > Issue Type: Wish >Reporter: Alexander Nozik >Priority: Trivial > > RealFieldElement in some cases could be used as a substitute for a generic > `Number` and it quite easy to make it implement `Number` interface. Perhaps > it would be better to inherit it form number to allow universal treatment. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (MATH-1448) Make RealFieldElement implement Number
[ https://issues.apache.org/jira/browse/MATH-1448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16350311#comment-16350311 ] Gilles commented on MATH-1448: -- bq. quite easy to make it implement `Number` interface ? [Number|https://docs.oracle.com/javase/8/docs/api/java/lang/Number.html] is not an interface. Please give a concrete example of what you wish to achieve. Also, it would be helpful if you could take a look at issue NUMBERS-51 (and the related code in branch "feature__NUMBERS-51__field"). > Make RealFieldElement implement Number > -- > > Key: MATH-1448 > URL: https://issues.apache.org/jira/browse/MATH-1448 > Project: Commons Math > Issue Type: Wish >Reporter: Alexander Nozik >Priority: Trivial > > RealFieldElement in some cases could be used as a substitute for a generic > `Number` and it quite easy to make it implement `Number` interface. Perhaps > it would be better to inherit it form number to allow universal treatment. -- This message was sent by Atlassian JIRA (v7.6.3#76005)