incubator-hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r751955 - /incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixAddition.java
Date Tue, 10 Mar 2009 01:59:01 GMT
Author: edwardyoon
Date: Tue Mar 10 01:59:01 2009
New Revision: 751955

URL: http://svn.apache.org/viewvc?rev=751955&view=rev
Log: (empty)

Modified:
    incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixAddition.java

Modified: incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixAddition.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixAddition.java?rev=751955&r1=751954&r2=751955&view=diff
==============================================================================
--- incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixAddition.java (original)
+++ incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixAddition.java Tue Mar
10 01:59:01 2009
@@ -42,11 +42,11 @@
 
     Matrix c;
     if (ARGS.size() > 2) {
-      System.out.println("C = A + B");
-      c = a.add(b);
-    } else {
       System.out.println("C = "+ Double.parseDouble(ARGS.get(2)) +" * B + A");
       c = a.add(Double.parseDouble(ARGS.get(2)), b);
+    } else {
+      System.out.println("C = A + B");
+      c = a.add(b);
     }
     
     c.close();



Mime
View raw message