
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
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 349,393 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
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.