mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdunn...@apache.org
Subject svn commit: r1164011 - /mahout/trunk/math/src/test/java/org/apache/mahout/math/MatrixTest.java
Date Thu, 01 Sep 2011 11:28:20 GMT
Author: tdunning
Date: Thu Sep  1 11:28:19 2011
New Revision: 1164011

URL: http://svn.apache.org/viewvc?rev=1164011&view=rev
Log:
MAHOUT-790 - Matrix cleanups.

Modified:
    mahout/trunk/math/src/test/java/org/apache/mahout/math/MatrixTest.java

Modified: mahout/trunk/math/src/test/java/org/apache/mahout/math/MatrixTest.java
URL: http://svn.apache.org/viewvc/mahout/trunk/math/src/test/java/org/apache/mahout/math/MatrixTest.java?rev=1164011&r1=1164010&r2=1164011&view=diff
==============================================================================
--- mahout/trunk/math/src/test/java/org/apache/mahout/math/MatrixTest.java (original)
+++ mahout/trunk/math/src/test/java/org/apache/mahout/math/MatrixTest.java Thu Sep  1 11:28:19
2011
@@ -113,8 +113,8 @@ public abstract class MatrixTest extends
   @Test
   public void testSetQuick() {
     int[] c = test.size();
-    for (int row = 0; row < c[ROW]; row++) {
-      for (int col = 0; col < c[COL]; col++) {
+    for (int row = 0; row < test.rowSize(); row++) {
+      for (int col = 0; col < test.columnSize(); col++) {
         test.setQuick(row, col, 1.23);
         assertEquals("value[" + row + "][" + col + ']', 1.23, test.getQuick(
             row, col), EPSILON);



Mime
View raw message