You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by gs...@apache.org on 2011/11/11 06:39:57 UTC
svn commit: r1200741 -
/mahout/trunk/core/src/main/java/org/apache/mahout/math/hadoop/MatrixMultiplicationJob.java
Author: gsingers
Date: Fri Nov 11 05:39:57 2011
New Revision: 1200741
URL: http://svn.apache.org/viewvc?rev=1200741&view=rev
Log:
minor cleanup to matrix mult input parameter handling
Modified:
mahout/trunk/core/src/main/java/org/apache/mahout/math/hadoop/MatrixMultiplicationJob.java
Modified: mahout/trunk/core/src/main/java/org/apache/mahout/math/hadoop/MatrixMultiplicationJob.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/math/hadoop/MatrixMultiplicationJob.java?rev=1200741&r1=1200740&r2=1200741&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/math/hadoop/MatrixMultiplicationJob.java (original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/math/hadoop/MatrixMultiplicationJob.java Fri Nov 11 05:39:57 2011
@@ -82,13 +82,13 @@ public class MatrixMultiplicationJob ext
@Override
public int run(String[] strings) throws Exception {
- addOption("numRowsA", "nra", "Number of rows of the first input matrix");
- addOption("numColsA", "nca", "Number of columns of the first input matrix");
- addOption("numRowsB", "nrb", "Number of rows of the second input matrix");
-
- addOption("numColsB", "ncb", "Number of columns of the second input matrix");
- addOption("inputPathA", "ia", "Path to the first input matrix");
- addOption("inputPathB", "ib", "Path to the second input matrix");
+ addOption("numRowsA", "nra", "Number of rows of the first input matrix", true);
+ addOption("numColsA", "nca", "Number of columns of the first input matrix", true);
+ addOption("numRowsB", "nrb", "Number of rows of the second input matrix", true);
+
+ addOption("numColsB", "ncb", "Number of columns of the second input matrix", true);
+ addOption("inputPathA", "ia", "Path to the first input matrix", true);
+ addOption("inputPathB", "ib", "Path to the second input matrix", true);
Map<String, String> argMap = parseArguments(strings);
if (argMap == null) {