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

[jira] [Updated] (MATH-1329) RealVector.Entry is private, cannot be used outside class

     [ https://issues.apache.org/jira/browse/MATH-1329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles Sadowski updated MATH-1329:
----------------------------------
    Fix Version/s:     (was: 4.0)
                   4.X

> RealVector.Entry is private, cannot be used outside class
> ---------------------------------------------------------
>
>                 Key: MATH-1329
>                 URL: https://issues.apache.org/jira/browse/MATH-1329
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.6
>         Environment: Any
>            Reporter: Ziqi
>            Priority: Major
>             Fix For: 4.X
>
>
> RealVector class has two methods that return an iterator to allow iterating through the entries in the vector:
> RealVector.sparseIterator()
> RealVector.iterator()
> Both return Iterator<RealVector.Entry>
> However, RealVector.Entry is a private class defined within RealVector. As a result, it is not possible to use the returned iterator to go through the values outside the class RealVector.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)