ndarray-unpack
Converts an ndarray into an array-of-arrays
Last updated 12 years ago by mikolalysenko .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ndarray-unpack 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (12 years ago)

3 Versions

  • 1.0.0                                ...           12 years ago
  • 0.0.1                                ...           12 years ago
  • 0.0.0                                ...           13 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |