Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ndarrays of bits

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

ndarray-bit

An ndarray of bits.

testling badge

build status

Example

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 true

Install

npm install ndarray-bit

require("ndarray-bit")(shape)

Creates an ndarray of bits initialized to shape.

  • shape is the shape of the bit array

Returns An ndarray of bits. The underlying store is an instance of minimal-bit-array.

Credits

(c) 2013 Mikola Lysenko. MIT License

Something went wrong with that request. Please try again.