You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2022/06/26 19:29:50 UTC
[GitHub] [commons-numbers] sumanth-rajkumar opened a new pull request, #112: NUMBERS-188: refactored Complex instance methods as static functions
sumanth-rajkumar opened a new pull request, #112:
URL: https://github.com/apache/commons-numbers/pull/112
This PR refactors Complex class using functional interfaces and static methods.
This allows reuse of the refactored static functions for Operations on List/Matrices of Complex Numbers (NUMBERS-186)
The changes retain binary backward compatibility.
Summary of changes
1) Introduced following interfaces for Complex Number Operations
DComplex - interface representing a complex number with double precision in cartesian form
DComplexUnaryOperator - unary operations on DComplex
DComplexBinaryOperator - binary operations on DComplex
DComplexScalarFunction - operations on a DComplex and double type returning a DComplex type
DComplexConstructor - interface to create the DComplex result object from real and imaginary parts
2) Refactored instance methods of Complex class as static functions in ComplexFunctions and ComplexBiFunctions
The static functions use the functional interface signatures described above
3) Added default methods on functional interfaces to compose Complex operations.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [commons-numbers] sumanth-rajkumar closed pull request #112: NUMBERS-188: refactored Complex instance methods as static functions
Posted by GitBox <gi...@apache.org>.
sumanth-rajkumar closed pull request #112: NUMBERS-188: refactored Complex instance methods as static functions
URL: https://github.com/apache/commons-numbers/pull/112
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org