commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] [Commented] (MATH-1372) Add argmin/argmax static functions to MathArrays utility class
Date Wed, 01 Jun 2016 14:28:59 GMT


Gilles commented on MATH-1372:

Code updated.

If the methods will be used inside the libray, all is fine
Even if not, it doesn't hurt much to have those two; I just wanted to stress that IMHO we
cannot provide and maintain all the little utilities which one could think of.  Also because,
it ties us when users would (rightly) claim that it's in the public API.

> Add argmin/argmax static functions to MathArrays utility class
> --------------------------------------------------------------
>                 Key: MATH-1372
>                 URL:
>             Project: Commons Math
>          Issue Type: Wish
>            Reporter: Artem Barger
>            Assignee: Artem Barger
>            Priority: Trivial
>         Attachments: MATH-1372.patch
> Following conversation in the ML thread.
> Working lately w/ CM, I've found myself using a lot functions which helps to identify
the index of the min/max elements in given array of doubles. 
> In ML it was pointed out that similar functionality already exists in RealVector, however
due to MATH-765 it's planned to be removed (deprecated), moreover to use it one has to create
an instance of RealVector, where for simple cases it might be redundant.
> Hence I'd like to propose to add these static methods to the MathArrays utility class.

This message was sent by Atlassian JIRA

View raw message