JSPM

zeros

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1163
  • Score
    100M100P100Q131382F
  • License MIT

Initialize an ndarray with zeros

Package Exports

  • zeros

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zeros) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

zeros

A replacement for ndarray.zeros (which was removed in ndarray 1.0.0)

Example

var zeros = require("zeros")

//Creates a 64x64 ndarray over a float64array filled with 0
var x = zeros([64, 64])

Install

Just use npm:

npm install zeros

require("zeros")(shape)

Creates an ndarray with the given shape that is initialized to zero

  • shape is the shape of the resulting array

Returns An array which is initialized to 0

Credits

(c) 2013 Mikola Lysenko. MIT License