[
https://issues.apache.org/jira/browse/NUMBERS-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17366316#comment-17366316
]
Gilles Sadowski commented on NUMBERS-165:
-----------------------------------------
Yes, if such a statement is assumed to always be a programming error.
> 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)