You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sigonasr2
0785506fad
|
4 years ago | |
---|---|---|
.. | ||
.npmignore | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
build.js | 4 years ago | |
convert.js | 4 years ago | |
doConvert.js | 4 years ago | |
package.json | 4 years ago |
README.md
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 ndarray-pack
require("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 unpackingarray
Returns A packed ndarray representation of the nested arrays.
Credits
(c) 2013 Mikola Lysenko. MIT License