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

plalib

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plalib - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "plalib",
"version": "0.1.0",
"version": "0.1.1",
"description": "Library with implementations of linear algebra parallel algorithms using JS and Web technologies",

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

@@ -28,3 +28,3 @@ import {enterBarrier, enterMutex, leaveMutex} from './plalib-sync-worker';

export function gaussJordanElimination (n, a, b, numberOfWorker, workersAmount, sync) {
gaussianElimination(n, a, b, numberOfWorker, sync);
gaussianElimination(n, a, b, numberOfWorker, workersAmount, sync);

@@ -31,0 +31,0 @@ for (let k = n - 1; k >= 0; k -= 1) {

@@ -36,9 +36,9 @@ import {initSync} from './plalib-sync-master';

var sync = initSync(this.workersAmount);
var sync = initSync(useWorkers);
return Promise.all(this._workers.map((worker, i) => {
return Promise.all(this._workers.slice(0, useWorkers).map((worker, i) => {
return new Promise((resolve, reject) => {
var taskId = Date.now();
worker.postMessage(
[methodName, taskId, n, a, b, i, this.workersAmount, sync],
[methodName, taskId, n, a, b, i, useWorkers, sync],
[sync.buffer, a.buffer, b.buffer]

@@ -45,0 +45,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