zeros

Initialize an ndarray with zeros

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])

Just use npm:

npm install zeros

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

(c) 2013 Mikola Lysenko. MIT License