A minimalistic bit array implementation that is compatible with ndarray's internals.
var BitArray = require("minimal-bit-array")
var x = new BitArray(100)
x.set(5, true)
console.log(x.get(4)) //Prints false
console.log(x.get(5)) //Prints true
npm install minimal-bit-array
var BitArray = require("minimal-bit-array")
Creates a bit array with the given length
Retrieves the bit at location i
Sets the bit at location i to v
Serializes the array to a JSON object
Deserializes a JSON object into a bit array.
(c) 2013 Mikola Lysenko. MIT License