{"_id":"ndarray-scratch","_rev":"21-cccccea9abcfbfd949867fd6517101b1","name":"ndarray-scratch","description":"Pooled memory for ndarrays","dist-tags":{"latest":"1.2.0"},"versions":{"0.0.0":{"name":"ndarray-scratch","version":"0.0.0","description":"Pooled memory for ndarrays","main":"scratch.js","directories":{"test":"test"},"dependencies":{"ndarray":"~1.0.3","typedarray-pool":"~0.1.1"},"devDependencies":{"tape":"~1.0.4"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/ndarray-scratch.git"},"keywords":["ndarray","pool","memory","typedarray","scratch","malloc","free"],"author":{"name":"Mikola Lysenko"},"license":"MIT","gitHead":"65525b62e25c70355a09b362b7aa13183acd4964","bugs":{"url":"https://github.com/mikolalysenko/ndarray-scratch/issues"},"_id":"ndarray-scratch@0.0.0","dist":{"shasum":"7cfa50a6c91cc6df129658a7ed18dacf197f24c8","tarball":"https://registry.npmjs.org/ndarray-scratch/-/ndarray-scratch-0.0.0.tgz","integrity":"sha512-wDhyrAjnA0r8WA73QqmEoxUgTs5ufmHln3Ym7JjUdujwIUVTJVlt3Uu2UtAObVzg+K7Ntq4Krl8p8vdqLisIfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD++GJ8p6NJLQHQ9CHIdKscnUdnCV/p0QNaAVwSRRGkMAIgTBaLIvab16JOobbHqhC04D5gOdxBjbD6nIhbJv43rN0="}]},"_from":".","_npmVersion":"1.2.24","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}]},"0.0.1":{"name":"ndarray-scratch","version":"0.0.1","description":"Pooled memory for ndarrays","main":"scratch.js","directories":{"test":"test"},"dependencies":{"ndarray":"~1.0.3","typedarray-pool":"~0.1.1"},"devDependencies":{"tape":"~1.0.4"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/ndarray-scratch.git"},"keywords":["ndarray","pool","memory","typedarray","scratch","malloc","free"],"author":{"name":"Mikola Lysenko"},"license":"MIT","gitHead":"65525b62e25c70355a09b362b7aa13183acd4964","bugs":{"url":"https://github.com/mikolalysenko/ndarray-scratch/issues"},"_id":"ndarray-scratch@0.0.1","dist":{"shasum":"f508d8888539528cd2a2990fd0bbc46ba38940f5","tarball":"https://registry.npmjs.org/ndarray-scratch/-/ndarray-scratch-0.0.1.tgz","integrity":"sha512-pp/2S1zrLGSmOSl+OHDEety1l4BpukitTmScACinpiD6H1Rw5RD40zNPFt28vu4+2RM1fg1o1WPs/xmK92/UuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG28oPnfEruvNGYQFQzq3po6e8fyYKc6P2dOgPp72HX6AiEA5rjrgURkrp7joS98hfD104M7Iqv0EFqL8m/HusEAe9I="}]},"_from":".","_npmVersion":"1.2.24","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}]},"1.0.0":{"name":"ndarray-scratch","version":"1.0.0","description":"Pooled memory for ndarrays","main":"scratch.js","directories":{"test":"test"},"dependencies":{"ndarray":"^1.0.11","typedarray-pool":"^1.0.0","ndarray-ops":"^1.2.1"},"devDependencies":{"tape":"~1.0.4"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/ndarray-scratch.git"},"keywords":["ndarray","pool","memory","typedarray","scratch","malloc","free"],"author":{"name":"Mikola Lysenko"},"license":"MIT","gitHead":"65525b62e25c70355a09b362b7aa13183acd4964","bugs":{"url":"https://github.com/mikolalysenko/ndarray-scratch/issues"},"homepage":"https://github.com/mikolalysenko/ndarray-scratch","_id":"ndarray-scratch@1.0.0","dist":{"shasum":"79f247271064253645e72b313cefea62bca3813e","tarball":"https://registry.npmjs.org/ndarray-scratch/-/ndarray-scratch-1.0.0.tgz","integrity":"sha512-FpIgga864vKR340HYLJU45tZc5SNKs8ys333LXPpeaRE2A+QSsw6L38K+yOe7dtbYqwolQVc9JeM5NtLMtocEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDoeiGnxVtghympyqTE+CMgo/GIivT2HulyMzrPeEWnAIhAJim6kHI6WWp1bRNozClTvJK5YcqUrBPgs3zolfS/qHa"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}]},"1.1.0":{"name":"ndarray-scratch","version":"1.1.0","description":"Pooled memory for ndarrays","main":"scratch.js","directories":{"test":"test"},"dependencies":{"ndarray":"^1.0.11","typedarray-pool":"^1.0.0","ndarray-ops":"^1.2.1"},"devDependencies":{"tape":"~1.0.4"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/ndarray-scratch.git"},"keywords":["ndarray","pool","memory","typedarray","scratch","malloc","free"],"author":{"name":"Mikola Lysenko"},"license":"MIT","gitHead":"65525b62e25c70355a09b362b7aa13183acd4964","bugs":{"url":"https://github.com/mikolalysenko/ndarray-scratch/issues"},"homepage":"https://github.com/mikolalysenko/ndarray-scratch","_id":"ndarray-scratch@1.1.0","dist":{"shasum":"599ae4629fabdfe66fcea4000e7b1741d13b7dc9","tarball":"https://registry.npmjs.org/ndarray-scratch/-/ndarray-scratch-1.1.0.tgz","integrity":"sha512-1b0O5v6yL0XTmakAsBt1YHYVNEoa/DconIzE0yq+qHnLFRPcdvkLeddoZK5XBVbbIIlLV9KLWvIvtLYbezzRoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjqV92RdNOvBmR3PDBQhBFkoQGR3v6GvaBXm0CRKFDCgIgVhYwpn1iX6czD+n4Dh4hqfOFSaVXLqGi2nj3eKAEhNY="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}]},"1.1.1":{"name":"ndarray-scratch","version":"1.1.1","description":"Pooled memory for ndarrays","main":"scratch.js","directories":{"test":"test"},"dependencies":{"ndarray":"^1.0.14","typedarray-pool":"^1.0.2","ndarray-ops":"^1.2.1"},"devDependencies":{"tape":"^2.13.1"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/ndarray-scratch.git"},"keywords":["ndarray","pool","memory","typedarray","scratch","malloc","free"],"author":{"name":"Mikola Lysenko"},"license":"MIT","gitHead":"65525b62e25c70355a09b362b7aa13183acd4964","bugs":{"url":"https://github.com/mikolalysenko/ndarray-scratch/issues"},"testling":{"files":"test/*.js","browsers":["ie/10..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"homepage":"https://github.com/mikolalysenko/ndarray-scratch","_id":"ndarray-scratch@1.1.1","dist":{"shasum":"bb074e9b90355c9ffcb62ec4847a8206e8927009","tarball":"https://registry.npmjs.org/ndarray-scratch/-/ndarray-scratch-1.1.1.tgz","integrity":"sha512-1wV32pqgFPcmQba2eMUQ/CNmy25L2djVIfam0cPJ+WwPluz1oP+pie3zOGhW2Xy44/5OGPwtcPaCEpqe9uwaWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxo0kH+FDC6P9xhbNDTxJmyhSnGFu2WUeCkt/vtiBCQAIhALe9nnI/dNUdqSfvaMJj8MsyIZsB+8AtwhswkYZTAdgy"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}]},"1.2.0":{"name":"ndarray-scratch","version":"1.2.0","description":"Pooled memory for ndarrays","main":"scratch.js","directories":{"test":"test"},"dependencies":{"ndarray":"^1.0.14","typedarray-pool":"^1.0.2","ndarray-ops":"^1.2.1"},"devDependencies":{"tape":"^2.13.1"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/ndarray-scratch.git"},"keywords":["ndarray","pool","memory","typedarray","scratch","malloc","free"],"author":{"name":"Mikola Lysenko"},"license":"MIT","gitHead":"65525b62e25c70355a09b362b7aa13183acd4964","bugs":{"url":"https://github.com/mikolalysenko/ndarray-scratch/issues"},"testling":{"files":"test/*.js","browsers":["ie/10..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"homepage":"https://github.com/mikolalysenko/ndarray-scratch#readme","_id":"ndarray-scratch@1.2.0","_shasum":"6304636d62eba93db4727ac13c693341dba50e01","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.2","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"dist":{"shasum":"6304636d62eba93db4727ac13c693341dba50e01","tarball":"https://registry.npmjs.org/ndarray-scratch/-/ndarray-scratch-1.2.0.tgz","integrity":"sha512-a4pASwB1jQyJcKLYrwrladVfDZDUGc78qLJZbHyb1Q4rhte0URhzc6ALQpBcauwgov0sXLwZz3vYH5jKAhSMIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICwJQOnLqxQrIZJGMtJICS7InYjgkagM0epmti3QFrtGAiAiEJCwHQTYOpmiRbil8D/chgU5RyNu30dnih98kq2OQg=="}]},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"jaspervdg","email":"th.v.d.gronde@hccnet.nl"},{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"substack","email":"substack@gmail.com"}]}},"readme":"ndarray-scratch\n===============\nA simple wrapper for typedarray-pool.  I got tired of manually constructing ndarrays from typedarrays, and so this module saves some keystrokes/sanity.\n\n[![testling badge](https://ci.testling.com/scijs/ndarray-scratch.png)](https://ci.testling.com/scijs/ndarray-scratch)\n\n[![build status](https://secure.travis-ci.org/scijs/ndarray-scratch.png)](http://travis-ci.org/scijs/ndarray-scratch)\n\n# Example\n\n```javascript\nvar pool = require(\"ndarray-scratch\")\n\n//Create a temporary typed array\nvar x = pool.malloc([100,100])\n\n//Do stuff with x\n\n//Release x\npool.free(x)\n```\n\n# Install\n\n    npm install ndarray-scratch\n\n# API\n\n```javascript\nvar pool = require(\"ndarray-pool\")\n```\n\n### `pool.malloc(shape[, dtype])`\nAllocates a temporary ndarray\n\n* `shape` is the shape of the array to allocate\n* `dtype` is the dtype of the array to allocate (default `\"double\"`)\n\n**Returns** a temporary ndarray\n\n### `pool.zeros(shape[,dtype])`\nCreates a scratch ndarray initialized to `0`\n\n* `shape` is the shape of the resulting array\n* `dtype` is the datatype of the array (default `\"double\"`)\n\n**Returns** A temporary ndarray initialized to 0\n\n### `pool.ones(shape[,dtype])`\nCreates a scratch ndarray initialized to `1`\n\n* `shape` is the shape of the resulting array\n* `dtype` is the datatype of the array (default `\"double\"`)\n\n**Returns** A temporary ndarray initialized to 1\n\n### `pool.eye(shape[,dtype])`\nCreates a scratch ndarray initialized to `1` if all indices equal, `0` otherwise.\n\n* `shape` is the shape of the resulting array\n* `dtype` is the datatype of the array (default `\"double\"`)\n\n**Returns** A temporary ndarray initialized to the identity matrix\n\n### `pool.free(array)`\nReleases a temporary ndarray\n\n* `array` is the ndarray to release.\n\n### `pool.clone(array)`\nCreates a copy of an ndarray with row-major order.\n\n* `array` is an ndarray\n\n**Returns** A temporary copy of `array`\n\n# Credits\n(c) 2013-2014 Mikola Lysenko. MIT License\n","maintainers":[{"email":"mikolalysenko@gmail.com","name":"mikolalysenko"},{"email":"th.v.d.gronde@hccnet.nl","name":"jaspervdg"},{"email":"hughskennedy@gmail.com","name":"hughsk"},{"email":"pgb@andrew.cmu.edu","name":"planeshifter"},{"email":"rsreusser@gmail.com","name":"rreusser"}],"time":{"modified":"2022-11-08T10:39:57.103Z","created":"2013-07-02T02:11:56.602Z","0.0.0":"2013-07-02T02:11:57.420Z","0.0.1":"2013-07-02T02:46:37.698Z","1.0.0":"2014-03-26T17:49:01.555Z","1.1.0":"2014-04-30T01:28:03.145Z","1.1.1":"2014-05-28T16:04:10.713Z","1.2.0":"2015-07-27T20:23:24.278Z"},"author":{"name":"Mikola Lysenko"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/ndarray-scratch.git"},"homepage":"https://github.com/mikolalysenko/ndarray-scratch#readme","keywords":["ndarray","pool","memory","typedarray","scratch","malloc","free"],"bugs":{"url":"https://github.com/mikolalysenko/ndarray-scratch/issues"},"license":"MIT","readmeFilename":"README.md","users":{"ptx":true}}