
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
ndarray-pack
Advanced tools
Converts an array-of-arrays (ie numeric.js array) into a packed ndarray.
//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)
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.
(c) 2013 Mikola Lysenko. MIT License
FAQs
Packs an array-of-arrays into a single ndarray
The npm package ndarray-pack receives a total of 327,699 weekly downloads. As such, ndarray-pack popularity was classified as popular.
We found that ndarray-pack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.