ndarray-pack
Packs an array-of-arrays into a single ndarray
Last updated 8 years ago by mikolalysenko .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install ndarray-pack 
SYNC missed versions from official npm registry.

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 unpacking array

Returns A packed ndarray representation of the nested arrays.

Credits

(c) 2013 Mikola Lysenko. MIT License

Current Tags

  • 1.2.1                                ...           latest (8 years ago)

8 Versions

  • 1.2.1                                ...           8 years ago
  • 1.2.0                                ...           9 years ago
  • 1.1.1                                ...           10 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
  • 0.0.1                                ...           11 years ago
  • 0.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |