Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC6B1D0A9 for ; Mon, 8 Oct 2012 05:58:08 +0000 (UTC) Received: (qmail 95028 invoked by uid 500); 8 Oct 2012 05:58:05 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 94681 invoked by uid 500); 8 Oct 2012 05:58:05 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 94620 invoked by uid 99); 8 Oct 2012 05:58:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2012 05:58:03 +0000 Date: Mon, 8 Oct 2012 05:58:03 +0000 (UTC) From: =?utf-8?Q?S=C3=A9bastien_Brisard_=28JIRA=29?= To: issues@commons.apache.org Message-ID: <1950761775.7791.1349675883341.JavaMail.jiratomcat@arcas> In-Reply-To: <361986145.7776.1349674682953.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (MATH-875) Deprecate RealVector.sparseIterator() and FieldVector.sparseIterator() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-875?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D134714= 13#comment-13471413 ]=20 S=C3=A9bastien Brisard commented on MATH-875: ---------------------------------------- In {{r1395455}}, deprecated {{sparseIterator()}} in the {{RealVector}} hier= archy, and replaced its use with {{iterator()}}. =20 > Deprecate RealVector.sparseIterator() and FieldVector.sparseIterator() > ---------------------------------------------------------------------- > > Key: MATH-875 > URL: https://issues.apache.org/jira/browse/MATH-875 > Project: Commons Math > Issue Type: Improvement > Affects Versions: 3.1, 4.0 > Reporter: S=C3=A9bastien Brisard > Priority: Minor > Labels: linear, sparse > > Following MATH-870, {{RealVector.sparseIterator()}} and {{FieldVector.spa= rseIterator()}} have become useless. Their 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 tha= t the interface offers the flexibility to chose the value which is not stor= ed in the sparse implementation. On the other hand, "small enough to be ign= ored" suggests that this default value is zero. > In version 3.1, this method will be deprecated, to be removed in 4.0. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira