Skip to content

Instantly share code, notes, and snippets.

@pnkfelix
Created April 18, 2013 21:59
Show Gist options
  • Save pnkfelix/5416585 to your computer and use it in GitHub Desktop.
Save pnkfelix/5416585 to your computer and use it in GitHub Desktop.
strange ComputeIndices issue (with debug instrumentation activated via mode parameter).
% ./js
js> print(new ParallelMatrix([2,3], (i,j,k) => k+10*(j+10*i) +1, {print:function(x) { print(JSON.stringify(x)); }}))
{"called":"ParallelMatrixConstruct","shape":[2,3],"frame":[2,3],"grain":[],"valtype":"any","mode":{}}
{"called":"ParallelMatrixConstruct prior parallel"}
{"called":"ParallelMatrixConstruct seq fallback"}
{"called":"fillN_leaf","indexStart":0,"indexEnd":6,"frame":[2,3]}
typein:1:0 ReferenceError: ComputeIndices is not defined
js>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment