Package Exports
- ndarray-pack
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ndarray-pack) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ndarray-pack
Converts an array-of-arrays (ie numeric.js array) into a packed ndarray.
Example
//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)
Install
npm install pack
require("ndarray-pack")(nested_array[, dtype])
Converts the nested array into a packed ndarray.
nested_array
is an array-of-arrays (ie a numeric.js array)dtype
is the data type of the packed ndarray. (Either, "uint8", "uint16", "uint32", "int8", "int16", "int32", "float" or "double")
Returns A packed ndarray representation of the nested arrays.
Credits
(c) 2013 Mikola Lysenko. MIT License