[
https://issues.apache.org/jira/browse/NUMBERS-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17340167#comment-17340167
]
Gilles Sadowski commented on NUMBERS-156:
-----------------------------------------
bq. Norms class with [static] methods [...] and overloads
Shouldn't we rather opt for functional interfaces:
*
[{{DoubleUnaryOperator}}|https://docs.oracle.com/javase/8/docs/api/java/util/function/DoubleUnaryOperator.html]
for 1D,
*
[{{DoubleBinaryOperator}}|https://docs.oracle.com/javase/8/docs/api/java/util/function/DoubleBinaryOperator.html]
for 2D,
*
[{{ToDoubleFunction<double[]>}}|https://docs.oracle.com/javase/8/docs/api/java/util/function/ToDoubleFunction.html]
for ND, and
* {{DoubleTernaryOperator}} (to be defined) for 3D
?
> SafeNorm 3D overload
> --------------------
>
> Key: NUMBERS-156
> URL: https://issues.apache.org/jira/browse/NUMBERS-156
> Project: Commons Numbers
> Issue Type: Improvement
> Reporter: Matt Juntunen
> Priority: Major
>
> We should create an overload of {{SafeNorm.value}} that accepts 3 arguments
> to potentially improve performance for 3D vectors.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)