Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 16230 invoked from network); 5 Jan 2010 21:50:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jan 2010 21:50:19 -0000 Received: (qmail 6058 invoked by uid 500); 5 Jan 2010 21:50:19 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 5964 invoked by uid 500); 5 Jan 2010 21:50:19 -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 5954 invoked by uid 99); 5 Jan 2010 21:50:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2010 21:50:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2010 21:50:16 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DA120234C4B0 for ; Tue, 5 Jan 2010 13:49:54 -0800 (PST) Message-ID: <1345186427.54021262728194892.JavaMail.jira@brutus.apache.org> Date: Tue, 5 Jan 2010 21:49:54 +0000 (UTC) From: "Mansoor Ahmed Khan (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (MATH-327) Maximal number of iterations (540) exceeded MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Maximal number of iterations (540) exceeded -------------------------------------------- Key: MATH-327 URL: https://issues.apache.org/jira/browse/MATH-327 Project: Commons Math Issue Type: Bug Environment: Windows 7 (32-bit) JDK 1.6_16 Reporter: Mansoor Ahmed Khan Priority: Critical I have a matrix of size 49x19 and when I apply SVD on this matrix it raises= the following exception. The problem which I am facing is that SVD works f= or some matrix and doesn't work for others. I have no clue what is the poss= ible reason. Exception:: org.apache.commons.math.linear.InvalidMatrixException: org.apache.commons.m= ath.MaxIterationsExceededException: Maximal number of iterations (540) exce= eded RealMatrix m =3D [[1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.000000= 00, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.00000000,= 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.00000000, 1.= 00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00= 000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.00000= 000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.00000000= , 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.00000000, = 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.0= 0000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.0000= 0000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.000000= 00, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000,= 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.= 00000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 0.94999999, 0.95= 833331, 1.00000000, 1.00000000, 0.99107143, 0.94583333, 1.00000000, 0.95000= 000, 0.98333333, 0.92106681, 0.97368419, 1.00000000, 0.95357142, 0.95238096= , 1.00000000, 0.93333334, 0.96428573],[1.00000000, 1.00000000, 0.94999999, = 0.95833331, 1.00000000, 1.00000000, 0.99107143, 0.94583333, 1.00000000, 0.9= 5000000, 0.98333333, 0.92106681, 0.97368419, 1.00000000, 0.95357142, 0.9523= 8096, 1.00000000, 0.93333334, 0.96428573],[1.00000000, 1.00000000, 1.000000= 00, 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000,= 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.= 95238096, 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.00= 000000, 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000= 000, 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143= , 0.95238096, 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, = 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.0= 0000000, 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.9910= 7143, 0.95238096, 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.000000= 00, 0.94999999, 0.95833331, 1.00000000, 1.00000000, 0.99107143, 0.94583333,= 1.00000000, 0.95000000, 0.98333333, 0.92106681, 0.97368419, 1.00000000, 0.= 95357142, 0.95238096, 1.00000000, 0.93333334, 0.96428573],[1.00000000, 1.00= 000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.00000= 000, 1.00000000, 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1.00000000= , 0.99107143, 0.95238096, 1.00000000, 1.00000000, 0.96428573],[1.00000000, = 1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.0= 0000000, 1.00000000, 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1.0000= 0000, 0.99107143, 0.95238096, 1.00000000, 1.00000000, 0.96428573],[1.000000= 00, 1.00000000, 0.94999999, 0.95833331, 1.00000000, 1.00000000, 0.99107143,= 0.94583333, 1.00000000, 0.95000000, 0.98333333, 0.92106681, 0.97368419, 1.= 00000000, 0.95357142, 0.95238096, 1.00000000, 0.93333334, 0.96428573],[1.00= 000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.99107= 143, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.94450431, 1.00000000= , 1.00000000, 0.99107143, 0.95238096, 1.00000000, 1.00000000, 0.96428573],[= 1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.9= 9107143, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.94450431, 1.0000= 0000, 1.00000000, 0.99107143, 0.95238096, 1.00000000, 1.00000000, 0.9642857= 3],[1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000,= 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.94450431, 1.= 00000000, 1.00000000, 0.99107143, 0.95238096, 1.00000000, 1.00000000, 0.964= 28573],[1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000= 000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.94450431= , 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.00000000, 1.00000000, 0= .96428573],[1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.0= 0000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.9445= 0431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.00000000, 1.0000000= 0, 0.96428573],[1.00000000, 1.00000000, 0.94999999, 0.95833331, 1.00000000,= 1.00000000, 0.99107143, 0.94583333, 1.00000000, 0.95000000, 0.98333333, 0.= 92106681, 0.97368419, 1.00000000, 0.95357142, 0.95238096, 1.00000000, 0.933= 33334, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000= 000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.00000000= , 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.00000000, 1= .00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.0= 0000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.0000= 0000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.0000000= 0, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.00000000,= 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.= 00000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.000= 00000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.00000= 000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000= , 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1= .00000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.0= 0000000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.0000= 0000, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.9523809= 6, 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000,= 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.= 00000000, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.952= 38096, 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000= 000, 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000= , 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0= .95238096, 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.0= 0000000, 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.0000= 0000, 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.9910714= 3, 0.95238096, 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000,= 0.94999999, 0.95833331, 1.00000000, 1.00000000, 0.99107143, 0.94583333, 1.= 00000000, 0.95000000, 0.98333333, 0.92106681, 0.97368419, 1.00000000, 0.953= 57142, 0.95238096, 1.00000000, 0.93333334, 0.96428573],[1.00000000, 1.00000= 000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.00000000= , 1.00000000, 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0= .99107143, 0.95238096, 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.0= 0000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.0000= 0000, 1.00000000, 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1.0000000= 0, 0.99107143, 0.95238096, 1.00000000, 1.00000000, 0.96428573],[1.00000000,= 1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.= 00000000, 1.00000000, 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1.000= 00000, 0.99107143, 0.95238096, 1.00000000, 1.00000000, 0.96428573],[1.00000= 000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.99107143= , 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1= .00000000, 0.99107143, 0.95238096, 1.00000000, 1.00000000, 0.96428573],[1.0= 0000000, 1.00000000, 0.94999999, 0.95833331, 1.00000000, 1.00000000, 0.9910= 7143, 0.94583333, 1.00000000, 0.95000000, 0.98333333, 0.92106681, 0.9736841= 9, 1.00000000, 0.95357142, 0.95238096, 1.00000000, 0.93333334, 0.96428573],= [1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.= 99107143, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.94450431, 1.000= 00000, 1.00000000, 0.99107143, 0.95238096, 1.00000000, 1.00000000, 0.964285= 73],[1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000= , 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.94450431, 1= .00000000, 1.00000000, 0.99107143, 0.95238096, 1.00000000, 1.00000000, 0.96= 428573],[1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.0000= 0000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.9445043= 1, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.00000000, 1.00000000, = 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.= 00000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.944= 50431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.00000000, 1.000000= 00, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.00000000= , 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0= .94450431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.00000000, 1.00= 000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.0000= 0000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.0000000= 0, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.00000000, = 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.00000000, 1.= 00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1.000= 00000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.000000= 00, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.00000000= , 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.00000000, 1= .00000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, 1.00= 000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.0000= 0000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.0000000= 0, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.95238096, = 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000, 1.= 00000000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1.000= 00000, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.952380= 96, 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.00000000= , 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.00000000, 1= .00000000, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, 0.95= 238096, 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.0000= 0000, 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.0000000= 0, 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.99107143, = 0.95238096, 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000, 1.= 00000000, 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1.000= 00000, 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.991071= 43, 0.95238096, 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.00000000= , 1.00000000, 1.00000000, 1.00000000, 1.00000000, 0.99107143, 1.00000000, 1= .00000000, 1.00000000, 1.00000000, 0.94450431, 1.00000000, 1.00000000, 0.99= 107143, 0.95238096, 1.00000000, 1.00000000, 0.96428573],[1.00000000, 1.0000= 0000, 0.94999999, 0.95833331, 1.00000000, 1.00000000, 0.99107143, 0.9458333= 3, 1.00000000, 0.95000000, 0.98333333, 0.92106681, 0.97368419, 1.00000000, = 0.95357142, 0.95238096, 1.00000000, 0.93333334, 0.96428573],[1.00000000, 1.= 00000000, 0.94999999, 0.95833331, 1.00000000, 1.00000000, 0.99107143, 0.945= 83333, 1.00000000, 0.95000000, 0.98333333, 0.92106681, 0.97368419, 1.000000= 00, 0.95357142, 0.95238096, 1.00000000, 0.93333334, 0.96428573]] RealMatrix rcp =3D MatrixUtils.createRealMatrix(CP);=09 SingularValueDecomposition svd =3D new SingularValueDecompositionImpl(rcp);= =09=09 RealMatrix U =3D svd.getU(); RealMatrix S =3D svd.getS(); RealMatrix Vt =3D svd.getVT(); double[] singularValues =3D svd.getSingularValues(); --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.