sumanth-rajkumar opened a new pull request, #111: URL: https://github.com/apache/commons-numbers/pull/111
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-unsubscr...@commons.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org