var cwise = require("cwise") var ndarray = require("ndarray") if(typeof test === "undefined") { test = require("tape") } function DumbStorage(n) { this.data = new Int32Array(n) this.length = n } DumbStorage.prototype.get = function(i) { return this.data[i] } DumbStorage.prototype.set = function(i, v) { return this.data[i]=v } test("unary", function(t) { var unary = cwise({ args: ["array"], body: function(a) { ++a } }) function testUnary1D(arr, testName) { for(var i=0; i