Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9B1BADD6F for ; Sat, 1 Sep 2012 08:19:14 +0000 (UTC) Received: (qmail 87829 invoked by uid 500); 1 Sep 2012 08:19:13 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 87746 invoked by uid 500); 1 Sep 2012 08:19:13 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 87718 invoked by uid 99); 1 Sep 2012 08:19:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Sep 2012 08:19:12 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.67.169.19] (HELO solo.fdn.fr) (80.67.169.19) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Sep 2012 08:19:07 +0000 Received: from lehrin.spaceroots.org (lehrin.spaceroots.org [IPv6:2001:910:10e5:6e78::7e41:1]) by smtp.fdn.fr (Postfix) with ESMTP id D841F45509 for ; Sat, 1 Sep 2012 10:18:45 +0200 (CEST) Received: from [127.0.0.1] (lehrin.spaceroots.org [127.0.0.1]) by lehrin.spaceroots.org (Postfix) with ESMTP id 9E17F5F421 for ; Sat, 1 Sep 2012 10:18:44 +0200 (CEST) Message-ID: <5041C4E4.5000700@free.fr> Date: Sat, 01 Sep 2012 10:18:44 +0200 From: Luc Maisonobe User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 MIME-Version: 1.0 To: Commons Developers List Subject: Re: [math] Re: Single root for Exceptions References: <5039CE39.2030705@free.fr> <503A5FF8.1030408@gmail.com> <503CBB41.7050005@free.fr> <503D2C04.40507@gmail.com> <20120828234049.GC24856@dusk.harfang.homelinux.org> <503DCC91.8010103@free.fr> <20120829220454.GG24856@dusk.harfang.homelinux.org> <503EC2D1.5010604@gmail.com> <20120830095523.GI24856@dusk.harfang.homelinux.org> <20120830115641.GJ24856@dusk.harfang.homelinux.org> <50408128.80606@free.fr> <504107CD.6090906@gmail.com> In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Le 01/09/2012 10:03, S�bastien Brisard a �crit : > Hi, > > in ConjugateGradient, I get the following error > > "Exception NonPositiveDefiniteOperatorException is not compatible with > throws clause in > PreconditionedIterativeLinearSolver.solveInPlace(RealLinearOperator, > RealLinearOperator, RealVector, RealVector)" > > This comes from the fact that general iterative solvers do not require > positive definite operators (therefore, no > "throws NonPositiveDefiniteOperatorException" clause in the signature of > PreconditionedIterativeLinearSolver.solveInPlace), while conjugate > gradient does. > > Do I need to add the "throws NonPositiveDefiniteOperatorException" > clause in the signature of > PreconditionedIterativeLinearSolver.solveInPlace as well? I think so, as users may use a ConjugateGradient and store it in a variable declared with the base class only. However, I don't know if adding an unchecked exception to the signature of an interface is a compatible change or not. Luc > > S�bastien > > 2012/9/1 S�bastien Brisard : >> Hello, >> >> >> 2012/8/31 Thomas Neidhart : >>> On 08/31/2012 11:17 AM, Luc Maisonobe wrote: >>>> Le 31/08/2012 03:22, S�bastien Brisard a �crit : >>>>> Hello, >>>>> >>>>>>>>> [...] >>>>>>>>> >>>>>>>>> Thus, shall I open a JIRA ticket with the tasks of completing the "throws" >>>>>>>>> clauses of all CM methods? >>>>>>>>> Does someone absolutely needs this task tobe completed before releasing 3.1? >>>>>>>>> [I don't think that it's possible without a huge effort from everyone.] >>>>>>> >>>>>>> Ticket created: >>>>>>> https://issues.apache.org/jira/browse/MATH-854 >>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> No hurry on my side, but I'm happy contributing. In order not to tread >>>>>>>> on anyone's feet, maybe each of us should be assigned one package (for >>>>>>>> a start). >>>>>>> >>>>>>> Good idea. >>>>>>> >>>>>>> Gilles: packages "o.a.c.m.optimization" >>>>>>> "o.a.c.m.analysis.function" >>>>>>> "o.a.c.m.analysis.solvers" >>>>>>> "o.a.c.m.analysis.integration" >>>>>>> "o.a.c.m.analysis.interpolation" >>>>>> >>>>>> +1 to divide and conquer. I will start on stat. >>>>>> >>>>>> Phil >>>>>>> >>>>>>> >>>>>>> Best regards, >>>>>>> Gilles >>>>>>> >>>>> I can take care of linear and special, of course! >>>> >>>> I'll look at ode, differentiation and geometry. >>> >>> I will start with filter and genetics. >>> >>> Thomas >>> >> Just to make sure I don't forget anything... We must apply >> you-know-who's trick to 4 and only 4 exception types >> - MathArithmeticException >> - MathIllegalArgumentException >> - MathIllegalStateException >> - MathUnsupportedOperationException >> >> Is that correct? >> S�bastien > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org