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

Luc Maisonobe resolved MATH-875.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.3

Un-deprecated method in r1570510.
The documentation explicitly states that ignored entires are the exact zero 
ones.

This is part of Apache Commons Math reconsidering support for sparse
linear algebra.

> Deprecate RealVector.sparseIterator()
> -------------------------------------
>
>                 Key: MATH-875
>                 URL: https://issues.apache.org/jira/browse/MATH-875
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 4.0
>            Reporter: Sébastien Brisard
>            Priority: Minor
>              Labels: linear, sparse
>             Fix For: 3.3
>
>
> Following MATH-870, {{RealVector.sparseIterator()}} has become useless. Its 
> interface was confusing. Indeed, the Javadoc states
> {quote}
> Specialized implementations may choose to not iterate over all dimensions, 
> either because those values are unset, or are equal to defaultValue(), or are 
> small enough to be ignored for the purposes of iteration.
> {quote}
> The reference to {{defaultValue()}} (which does *not* exist) suggests that 
> the interface offers the flexibility to chose the value which is not stored 
> in the sparse implementation. On the other hand, "small enough to be ignored" 
> suggests that this default value is zero.
> In version 3.1, this method will be deprecated, to be removed in 4.0.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to