Skip to content

Instantly share code, notes, and snippets.

@mraleph
Created May 8, 2011 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mraleph/961280 to your computer and use it in GitHub Desktop.
Save mraleph/961280 to your computer and use it in GitHub Desktop.
diff --git a/matmul/matmul_v1.js b/matmul/matmul_v1.js
index 2c568f5..8a921e5 100644
--- a/matmul/matmul_v1.js
+++ b/matmul/matmul_v1.js
@@ -37,8 +37,8 @@ function matgen(n) {
return a;
}
-var n = 100;
-if (arguments[0]) n = parseInt(arguments[0]);
+// shell does not support commandline arguments so just hardcode problem size
+var n = 1000;
var a = matgen(n);
var b = matgen(n);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment