[
https://issues.apache.org/jira/browse/NUMBERS-188?focusedWorklogId=784625&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-784625
]
ASF GitHub Bot logged work on NUMBERS-188:
------------------------------------------
Author: ASF GitHub Bot
Created on: 24/Jun/22 14:48
Start Date: 24/Jun/22 14:48
Worklog Time Spent: 10m
Work Description: 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.
Issue Time Tracking
-------------------
Worklog Id: (was: 784625)
Remaining Estimate: 0h
Time Spent: 10m
> Static Method Refactor and Functional Interfaces
> ------------------------------------------------
>
> Key: NUMBERS-188
> URL: https://issues.apache.org/jira/browse/NUMBERS-188
> Project: Commons Numbers
> Issue Type: Sub-task
> Reporter: Sumanth Sulur Rajkumar
> Priority: Minor
> Labels: gsoc2022
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Refactored existing instance methods in Complex class as static functions in
> ComplexFunctions class using functional interface signatures
--
This message was sent by Atlassian Jira
(v8.20.7#820007)