Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
symmetric-tensor-index
Advanced tools
Index operations for symmetric tensors (aka multinomials). In a r-th order symmetric tensor over a d-dimensional vector spaces, we can think of the indices in 3 different ways:
The code in this library can be used to convert between these indices. For more details see:
npm install symmetric-tensor-index
var sym = require("symmetric-tensor-index")
sym.nextTensor(dimension, rank, seq[, index])
Finds the index of the next entry in the tensor.
dimension
is the dimension of the tensorrank
is the rank of the tensorseq
is the tensor indexindex
is the array index (optional)Returns The next array index. seq
is updated in place.
sym.tensorToDegree(dimension, rank, seq[, result])
Converts a tensor index to a degree index
dimension
dimension of vector spacerank
rank of the tensorseq
is the tensor indexresult
(optional) gets the resulting computationReturns result
sym.tensorToArray(dimension, rank, seq)
Converts a tensor index to an array index
dimension
dimension of vector spacerank
rank of the tensorseq
is the tensor indexReturns The array index of the tensor entry
sym.degreeToTensor(dimension, rank, degrees[, result])
Converts a degree index to a tensor index
dimension
dimension of vector spacerank
rank of the tensordegrees
is the degree indexresult
is the result (optional)Returns result
sym.degreeToArray(dimension, rank, degrees)
Converts a degree index to an array index
dimension
dimension of vector spacerank
rank of the tensordegrees
is the degree indexReturns The array index of the degree sequence
(c) 2013 Mikola Lysenko. MIT License
FAQs
Index arithmetic for symmetric tensors
The npm package symmetric-tensor-index receives a total of 0 weekly downloads. As such, symmetric-tensor-index popularity was classified as not popular.
We found that symmetric-tensor-index 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
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.