You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Juntunen (Jira)" <ji...@apache.org> on 2021/06/20 18:35:00 UTC

[jira] [Commented] (NUMBERS-165) Norm of empty array

    [ https://issues.apache.org/jira/browse/NUMBERS-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17366239#comment-17366239 ] 

Matt Juntunen commented on NUMBERS-165:
---------------------------------------

I'm assuming this applies to {{L2}}, and {{LINF}} as well?

> 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)