[
https://issues.apache.org/jira/browse/NUMBERS-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17366473#comment-17366473
]
Gilles Sadowski commented on NUMBERS-165:
-----------------------------------------
Does it make sense to not make the additional check, leaving it to the caller
to ensure proper usage? Or would the (supposed) performance gain be too
marginal wrt the risk of some error going unnoticed?
> Norm of empty array
> -------------------
>
> Key: NUMBERS-165
> URL: https://issues.apache.org/jira/browse/NUMBERS-165
> Project: Commons Numbers
> Issue Type: Bug
> Components: core
> Reporter: Gilles Sadowski
> Assignee: Gilles Sadowski
> Priority: Major
> Fix For: 1.0
>
>
> {code}
> double n = Norm.L1.of(new double[0]); // n == 0
> {code}
> I think that an exception should be raised.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)