Comparing version 0.1.0 to 0.1.1
{ | ||
"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 @@ ); |
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
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
37134