ndarray-unpack

1.0.0 • Public • Published

ndarray-unpack

Converts an ndarray into an array-of-native-arrays. (Same format used by numeric.js). Like all ndarray modules this works both in node.js and in the browser.

Example

//Create an ndarray and set a value
var x = require("zeros")([5,5])
x.set(2,2,1)
 
//Convert ndarray into array-of-arrays
console.log(require("unpack")(x))

Install

npm install ndarray-unpack

require("ndarray-unpack")(array)

Converts array into an array-of-arrays style array.

  • array is an ndarray

Returns An array-of-arrays having the same contents as array

Credits

(c) 2013 Mikola Lysenko. MIT License

Versions

Current Tags

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

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    3,971
  • 0.0.1
    2
  • 0.0.0
    0

Package Sidebar

Install

npm i ndarray-unpack

Weekly Downloads

3,973

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mikolalysenko
  • jaspervdg
  • hughsk
  • planeshifter
  • rreusser