
Research
5 Malicious Chrome Extensions Enable Session Hijacking in Enterprise HR and ERP Systems
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.
ndarray-unsqueeze
Advanced tools
Add singleton dimensions to an ndarray
This module takes an input ndarray and either appends a singleton dimension (a dimension of length one) or inserts it before a specific dimension.
var ndarray = require('ndarray')
var unsqueeze = require('ndarray-unsqueeze')
unsqueeze(ndarray([1, 2, 3, 4], [2, 2]))
// => ndarray([1, 2, 3, 4], [2, 2, 1])
unsqueeze(ndarray([1, 2, 3, 4], [2, 2]), 0)
// => ndarray([1, 2, 3, 4], [1, 2, 2])
Note that ndarrays have no concept of row or column vectors. If you need a matrix explicitly representing a row or column vector, you can use unsqueeze:
var show = require('ndarray-show')
// Create a 3 x 1 matrix by appending a singleton dimension:
show(unsqueeze(ndarray([1,2,3])))
// => 1.000
// 2.000
// 3.000
// Create a 1 x 3 matrix by prepending a singleton dimension:
show(unsqueeze(ndarray([1,2,3]), 0))
// => 1.000 2.000 3.000
$ npm install ndarray-unsqueeze
require('ndarray-unsqueeze')(input[, axis])Arguments:
input: The input ndarray to be unsqueezeaxes (optional): An integer index of the dimension at which to insert the singleton dimension. If unspecified, singleton dimension is appended to the shape.Returns: A new array view of the unsqueezed ndarray (i.e. a new ndarray object with the same underlying data).
© 2016 Ricky Reusser. MIT License.
FAQs
Add singleton dimensions to an ndarray
We found that ndarray-unsqueeze demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.