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 6A3E41835F for ; Thu, 31 Dec 2015 03:34:00 +0000 (UTC) Received: (qmail 96810 invoked by uid 500); 31 Dec 2015 03:34:00 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 96667 invoked by uid 500); 31 Dec 2015 03:34:00 -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 96655 invoked by uid 99); 31 Dec 2015 03:33:59 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Dec 2015 03:33:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4FCD81A030E for ; Thu, 31 Dec 2015 03:33:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ouCcOT4U0zRX for ; Thu, 31 Dec 2015 03:33:58 +0000 (UTC) Received: from mail-ig0-f175.google.com (mail-ig0-f175.google.com [209.85.213.175]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 8146A20CCD for ; Thu, 31 Dec 2015 03:33:58 +0000 (UTC) Received: by mail-ig0-f175.google.com with SMTP id ik10so35156975igb.1 for ; Wed, 30 Dec 2015 19:33:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=eoZop/M5BzzQJLQRRv89CwgvlbbSXcHf6OKTUyV4+GE=; b=LxNHgkcy7VJTxjW7XNW7W12howA8UCLvE6JRxkG1YXQPXo+UyZP3YntjcMDU5nsfuE RaGUuu8hjnzsomaMgRwGbzoC1ZNcRB7Ic+9ToIOsbp8V/yOnTOEovnzLPLjj6MZCAzP9 wGAFxBD2npXFnkez+G5X3IEXgUDjvkxGGJf0M39s/AILse2QdCquOlcVK0x89HRo/sgc TH4/thQavbe3qA07HKxKa2Jybm6zatClmPD3y6+T/BnjZK2Hg1gIHuqdZHMjEcwMqQ0N NPDQ3EnTMvYF4I1mpBBOkW5OaWt7WD6vAMcUfXBLzNeVO16Fm9AvEg4wUZs2q54tZae3 iMmQ== X-Received: by 10.50.79.137 with SMTP id j9mr29735645igx.63.1451532838003; Wed, 30 Dec 2015 19:33:58 -0800 (PST) Received: from [192.168.1.7] (c-73-44-134-85.hsd1.il.comcast.net. [73.44.134.85]) by smtp.gmail.com with ESMTPSA id 204sm10589308iob.44.2015.12.30.19.33.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Dec 2015 19:33:56 -0800 (PST) From: Ole Ersoy Subject: [math] RealMatrixFormat.parse() To: Commons Developers List Message-ID: <5684A224.9060203@gmail.com> Date: Wed, 30 Dec 2015 21:33:56 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi, In RealMatrixFormat.parse() MatrixUtils makes the decision on what type of RealMatrix instance to return. Flexibility is gained if it just returns double[][] letting the caller decide what type of RealMatrix instance to create. It's also better for modularity, as is reduces RealMatrixFormat imports (The MatrixUtils supports Field matrices as well, and I'm attempting to separate real and field matrices into two difference modules). Also just curious if Array2DRowRealMatrix is worth keeping? It seems like the performance of BlockRealMatrix might be just as good or better regardless of matrix size ... although my testing is limited. Cheers, Ole --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org