package
ndarrays of bits
npm install ndarray-bitGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Registry package owners.
An ndarray of bits.
var ndbits = require("ndarray-bit")
//Create a 100x100 bit mask
var x = ndbits([100, 100])
x.set(1, 10, true)
x.get(1, 10) //Returns truenpm install ndarray-bitrequire("ndarray-bit")(shape)Creates an ndarray of bits initialized to shape.
shape is the shape of the bit arrayReturns An ndarray of bits. The underlying store is an instance of minimal-bit-array.
(c) 2013 Mikola Lysenko. MIT License
Estimated unpacked size across 5 packages.
26.5 kB
Includes dependencies.