Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

numjs

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

numjs - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

2

bower.json
{
"name": "numjs",
"version": "0.11.0",
"version": "0.11.1",
"description": "Like NumPy, in JavaScript",

@@ -5,0 +5,0 @@ "main": "dist/numjs.min.js",

{
"name": "numjs",
"version": "0.11.0",
"version": "0.11.1",
"description": "Like NumPy, in JavaScript",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -338,9 +338,8 @@ 'use strict';

NdArray.prototype.dot = function(x){
x = createArray(x, this.dtype);
x = (x instanceof NdArray) ? x: createArray(x, this.dtype);
var tShape = this.shape,
xShape = x.shape;
var cShape, c, T = _.getType(this.dtype);
if (tShape.length === 2 && xShape.length === 2 && tShape[1] === xShape[0]){ // matrix/matrix
cShape = [tShape[0], xShape[1]];
c = new NdArray(new T(_.shapeSize(cShape)), cShape);
var T = _.getType(this.dtype), c = new NdArray(new T(tShape[0] * xShape[1]), [tShape[0], xShape[1]]);
gemm(c.selection, this.selection, x.selection);

@@ -347,0 +346,0 @@ return c;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc