{"_id":"zeros","_rev":"3002387","name":"zeros","description":"Initialize an ndarray with zeros","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jaspervdg","email":"th.v.d.gronde@hccnet.nl"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"}],"time":{"modified":"2023-09-14T09:55:03.000Z","created":"2013-06-26T17:23:27.526Z","1.0.0":"2015-04-30T23:55:48.292Z","0.0.0":"2013-06-26T17:23:27.526Z"},"users":{},"author":{"name":"Mikola Lysenko"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/zeros.git"},"versions":{"1.0.0":{"name":"zeros","version":"1.0.0","description":"Initialize an ndarray with zeros","main":"zeros.js","directories":{"test":"test"},"dependencies":{"ndarray":"^1.0.16"},"devDependencies":{"tape":"^4.0.0"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/zeros.git"},"keywords":["ndarray","zeros","initialize"],"author":{"name":"Mikola Lysenko"},"license":"MIT","gitHead":"f8ac32f9f3d6c8814e29329be9ecea0a9b1b6389","bugs":{"url":"https://github.com/mikolalysenko/zeros/issues"},"homepage":"https://github.com/mikolalysenko/zeros#readme","_id":"zeros@1.0.0","_shasum":"64e2d83c0da8d322aa4cb882497b31b7dc33a540","_from":".","_npmVersion":"2.8.4","_nodeVersion":"1.8.1","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"dist":{"shasum":"64e2d83c0da8d322aa4cb882497b31b7dc33a540","size":2124,"noattachment":false,"key":"/zeros/-/zeros-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/zeros/download/zeros-1.0.0.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jaspervdg","email":"th.v.d.gronde@hccnet.nl"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"}],"publish_time":1430438148292,"_hasShrinkwrap":false,"_cnpm_publish_time":1430438148292,"_cnpmcore_publish_time":"2021-12-18T18:40:03.252Z"},"0.0.0":{"name":"zeros","version":"0.0.0","description":"Initialize an ndarray with zeros","main":"zeros.js","directories":{"test":"test"},"dependencies":{"ndarray":"~1.0.0"},"devDependencies":{"tape":"~1.0.4"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/zeros.git"},"keywords":["ndarray","zeros","initialize"],"author":{"name":"Mikola Lysenko"},"license":"MIT","readmeFilename":"README.md","gitHead":"f8ac32f9f3d6c8814e29329be9ecea0a9b1b6389","bugs":{"url":"https://github.com/mikolalysenko/zeros/issues"},"_id":"zeros@0.0.0","dist":{"shasum":"84b7c9659e93997d1856c7d1833735dfff9c53f0","size":1679,"noattachment":false,"key":"/zeros/-/zeros-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/zeros/download/zeros-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.24","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"jaspervdg","email":"th.v.d.gronde@hccnet.nl"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"}],"publish_time":1372267407526,"deprecated":"Use ndarray-scratch or ndarray-fill instead","_hasShrinkwrap":false,"_cnpm_publish_time":1372267407526,"_cnpmcore_publish_time":"2021-12-18T18:40:03.528Z"}},"readme":"zeros\n=====\nA replacement for `ndarray.zeros` (which was removed in [ndarray](https://github.com/mikolalysenko/ndarray) 1.0.0)\n\nExample\n=======\n```javascript\nvar zeros = require(\"zeros\")\n\n//Creates a 64x64 ndarray over a float64array filled with 0\nvar x = zeros([64, 64])\n```\n\nIt also accepts an optional dtype as specified in the [ndarray](https://github.com/scijs/ndarray) docs. For example,\n```javascript\n//Creates a 64x64 ndarray over a float32array filled with 0\nvar x = zeros([64, 64], 'float32')\n```\n\nThis makes it easy to create an array with the same size and dtype as an existing array:\n```javascript\nvar x = zeros([64, 64], 'float32')\nvar y = zeros( x.shape, x.dtype )\n```\n\nIf you find yourself frequently creating the same array over and over though, [ndarray-scratch](https://github.com/mikolalysenko/ndarray-scratch) may be a better option.\n\n## Install\nJust use npm:\n\n    npm install zeros\n    \n### `require(\"zeros\")(shape[, dtype])`\nCreates an ndarray with the given shape that is initialized to zero\n\n* `shape` is the shape of the resulting array\n* `dtype` is the data type of the array to allocate.  Must be one of:\n  + `\"array\"`\n  + `\"uint8\"`\n  + `\"uint16\"`\n  + `\"uint32\"`\n  + `\"int8\"`\n  + `\"int16\"`\n  + `\"int32\"`\n  + `\"float\"`\n  + `\"float32\"`\n  + `\"double\"`\n  + `\"float64\"`\n  + `\"data\"`\n  + `\"uint8_clamped\"`\n  + `\"buffer\"`\n\n**Returns** An array which is initialized to 0\n\n## Credits\n(c) 2013 Mikola Lysenko. MIT License\n","_attachments":{},"homepage":"https://github.com/mikolalysenko/zeros#readme","bugs":{"url":"https://github.com/mikolalysenko/zeros/issues"},"license":"MIT"}