Converts an array-of-arrays (ie numeric.js array) into a packed ndarray.
//First create a numeric.js style array:varx=[[1,0,1],[0,1,1],[0,0,1],[1,0,0]]vary=require("ndarray-pack")(x)npm install ndarray-pack
Converts the nested array into a packed ndarray.
nested_arrayis an array-of-arrays (ie a numeric.js array)outis an optional ndarray that gets the result of unpackingarray
Returns A packed ndarray representation of the nested arrays.
(c) 2013 Mikola Lysenko. MIT License