cwise-compiler
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -32,3 +32,3 @@ "use strict" | ||
var proc_args = user_args.args.slice(0) | ||
proc.argTypes = proc_args.slice(0) | ||
proc.argTypes = proc_args | ||
for(var i=0; i<proc_args.length; ++i) { | ||
@@ -35,0 +35,0 @@ var arg_type = proc_args[i] |
@@ -21,5 +21,5 @@ "use strict" | ||
if(i === 0) { | ||
vars.push(["d",j,"s",i,"=t",j,"[",idx,"]"].join("")) | ||
vars.push(["d",j,"s",i,"=t",j,"p",idx].join("")) | ||
} else { | ||
vars.push(["d",j,"s",i,"=(t",j,"[",idx,"]-s",pidx,"*t",j,"[",pidx,"])"].join("")) | ||
vars.push(["d",j,"s",i,"=(t",j,"p",idx,"-s",pidx,"*t",j,"p",pidx,")"].join("")) | ||
} | ||
@@ -78,3 +78,3 @@ } | ||
for(var j=matched; j<dimension; ++j) { | ||
indexStr.push(["j",j,"*t",i,"[",order[j],"]"].join("")) | ||
indexStr.push(["j",j,"*t",i,"p",order[j]].join("")) | ||
} | ||
@@ -215,2 +215,6 @@ code.push(["p",i,"=(",indexStr.join("+"),")"].join("")) | ||
orders[i] = typesig[2*i+1] | ||
for(var j=0; j<dimension; ++j) { | ||
vars.push(["t",i,"p",j,"=t",i,"[",j,"]"].join("")) | ||
} | ||
} | ||
@@ -237,5 +241,5 @@ for(var i=0; i<proc.scalarArgs.length; ++i) { | ||
} else if(off_arg.offset[j] === 1) { | ||
init_string.push(["t", off_arg.array, "[", j, "]"].join("")) | ||
init_string.push(["t", off_arg.array, "p", j].join("")) | ||
} else { | ||
init_string.push([off_arg.offset[j], "*t", off_arg.array, "[", j, "]"].join("")) | ||
init_string.push([off_arg.offset[j], "*t", off_arg.array, "p", j].join("")) | ||
} | ||
@@ -246,3 +250,3 @@ } | ||
} else { | ||
vars.push(["q", i, "=(", init_string.join("+"),")|0"].join("")) | ||
vars.push(["q", i, "=", init_string.join("+")].join("")) | ||
} | ||
@@ -249,0 +253,0 @@ } |
{ | ||
"name": "cwise-compiler", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "cwise's internal compiler", | ||
@@ -26,4 +26,4 @@ "main": "compiler.js", | ||
"dependencies": { | ||
"uniq": "~0.0.2" | ||
"uniq": "^1.0.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
15791
403
1
+ Addeduniq@1.0.1(transitive)
- Removeduniq@0.0.2(transitive)
Updateduniq@^1.0.0