package
Packs an array-of-arrays into a single ndarray
npm install ndarray-packGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Converts an array-of-arrays (ie numeric.js array) into a packed ndarray.
//First create a numeric.js style array:
var x = [[1, 0, 1],
[0, 1, 1],
[0, 0, 1],
[1, 0, 0]]
var y = require("ndarray-pack")(x)npm install ndarray-packrequire("ndarray-pack")(nested_array[,out])Converts the nested array into a packed ndarray.
nested_array is an array-of-arrays (ie a numeric.js array)out is an optional ndarray that gets the result of unpacking arrayReturns A packed ndarray representation of the nested arrays.
(c) 2013 Mikola Lysenko. MIT License
jaspervdg
th.v.d.gronde@hccnet.nl
Estimated unpacked size across 6 packages.
26.5 kB
Includes dependencies.