Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Converts an ndarray into an array-of-arrays
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test adding files
.gitignore
.npmignore
LICENSE
README.md
package.json added cwise transform
unpack.js added cwise transform

README.md

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

Something went wrong with that request. Please try again.