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

ml-sparse-matrix

Package Overview
Dependencies
Maintainers
7
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-sparse-matrix - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

14

package.json
{
"name": "ml-sparse-matrix",
"version": "0.1.0",
"version": "0.1.1",
"description": "Sparse matrix library",
"main": "dist/SparseMatrix.js",
"jsnext:main": "src/SparseMatrix.js",
"main": "src/SparseMatrix.js",
"scripts": {
"test": "npm run build && mocha",
"build": "rollup -c"
"test": "mocha"
},
"files": [
"dist",
"src"

@@ -31,10 +28,7 @@ ],

"mocha": "^2.4.5",
"rollup": "^0.26.3",
"rollup-plugin-commonjs": "^2.2.1",
"rollup-plugin-node-resolve": "^1.5.0",
"should": "^8.3.1"
},
"dependencies": {
"ml-hash-table": "^0.1.1"
"ml-hash-table": "^0.1.2"
}
}

@@ -1,2 +0,2 @@

import HashTable from 'ml-hash-table';
const HashTable = require('ml-hash-table');

@@ -128,3 +128,5 @@ class SparseMatrix {

const result = new SparseMatrix(m * p, n * q);
const result = new SparseMatrix(m * p, n * q, {
initialCapacity: this.cardinality * other.cardinality
});
this.forEachNonZero((i, j, v1) => {

@@ -179,3 +181,3 @@ other.forEachNonZero((k, l, v2) => {

export default SparseMatrix;
module.exports = SparseMatrix;

@@ -182,0 +184,0 @@ /*

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