Comparing version 0.11.0 to 0.11.1
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 20 instances in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
2
0
1
717952
36
2549