Socket
Socket
Sign inDemoInstall

ndarray-pack

Package Overview
Dependencies
5
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ndarray-pack

Packs an array-of-arrays into a single ndarray


Version published
Weekly downloads
397K
decreased by-9.17%
Maintainers
6
Install size
68.1 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 02 Aug 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc