ndarray-bit

1.0.0 • Public • Published

ndarray-bit

An ndarray of bits.

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    3
  • 0.0.0
    1

Package Sidebar

Install

npm i ndarray-bit

Weekly Downloads

4

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mikolalysenko
  • jaspervdg
  • hughsk
  • planeshifter
  • rreusser