Socket
Socket
Sign inDemoInstall

ndarray-pack

Package Overview
Dependencies
5
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

build.js

13

convert.js
"use strict"
var ndarray = require("ndarray")
var cwise = require("cwise")
var do_convert = require("./doConvert.js")
var do_convert = cwise({
args: ["array", "scalar", "index"],
body: function(out, a, idx) {
var v = a
for(var i=0; i<idx.length-1; ++i) {
v = v[idx[i]]
}
out = v[idx[idx.length-1]]
}
})
module.exports = function convert(arr, result) {

@@ -18,0 +7,0 @@ var shape = [], c = arr, sz = 1

{
"name": "ndarray-pack",
"version": "1.1.0",
"version": "1.1.1",
"description": "Packs an array-of-arrays into a single ndarray",

@@ -10,10 +10,12 @@ "main": "convert.js",

"dependencies": {
"cwise": "^0.3.2",
"ndarray": "^1.0.13"
"ndarray": "^1.0.13",
"cwise-compiler": "^0.1.0"
},
"devDependencies": {
"tap": "~0.4.2"
"tap": "~0.4.2",
"cwise-bake": "0.0.0"
},
"scripts": {
"test": "tap test/*.js"
"test": "tap test/*.js",
"build": "node build.js > doConvert.js"
},

@@ -20,0 +22,0 @@ "repository": {

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