@danielsimonjr/mathts-parallel 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -32
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { TaskOptions, PoolStats as PoolStats$1, MathWorkerPool } from '@danielsimonjr/mathts-workerpool';
2
- export { Transfer } from '@danielsimonjr/mathts-workerpool';
1
+ import { TaskOptions, PoolStats, MathWorkerPool } from '@danielsimonjr/mathts-workerpool';
2
+ export { ExecOptions, PoolOptions, PoolStats, Transfer } from '@danielsimonjr/mathts-workerpool';
3
3
 
4
4
  /**
5
5
  * MathTS Compute Pool
@@ -164,7 +164,7 @@ declare class ComputePool {
164
164
  /**
165
165
  * Get pool statistics
166
166
  */
167
- stats(): PoolStats$1;
167
+ stats(): PoolStats;
168
168
  /**
169
169
  * Parallel sum of array elements
170
170
  */
@@ -1283,32 +1283,4 @@ declare function dispatch(elementCount: number, category?: OperationCategory): D
1283
1283
  */
1284
1284
  declare function calculateChunks(elementCount: number, category?: OperationCategory): number;
1285
1285
 
1286
- /**
1287
- * @danielsimonjr/mathts-parallel
1288
- *
1289
- * WebWorker parallelization for MathTS computations.
1290
- * Provides automatic parallelization based on data size thresholds.
1291
- *
1292
- * @packageDocumentation
1293
- */
1294
-
1295
- interface PoolOptions {
1296
- minWorkers?: number | 'max';
1297
- maxWorkers?: number;
1298
- workerType?: 'auto' | 'web' | 'thread';
1299
- workerTerminateTimeout?: number;
1300
- }
1301
- interface ExecOptions {
1302
- on?: (payload: unknown) => void;
1303
- transfer?: unknown[];
1304
- timeout?: number;
1305
- }
1306
- interface PoolStats {
1307
- totalWorkers: number;
1308
- busyWorkers: number;
1309
- idleWorkers: number;
1310
- pendingTasks: number;
1311
- activeTasks: number;
1312
- }
1313
-
1314
- export { type BitwiseBinaryOp, type ChunkInfo, type ChunkOptions, type ChunkResult, ComputePool, type ComputePoolConfig, DEFAULT_POOL_CONFIG, DEFAULT_THRESHOLDS, DEFAULT_THRESHOLD_BY_OP, type DispatchResult, type ElementwiseOptions, type ExecOptions, type ExecutionMode, type MapOptions, type MatmulOptions, type OpName, type OpThreshold, type OperationCategory, type ParallelResult, type PoolOptions, type PoolStats, type ReduceOptions, type ThresholdConfig, ThresholdDispatcher, bitAnd, bitNot, bitOr, bitXor, calculateChunks, calculateOptimalChunks, chunkArray, chunkFloat64Array, computePool, dispatch, leftShift, mergeArrayChunks, mergeFloat64Chunks, parallelAbs, parallelAdd, parallelCos, parallelCount, parallelDistance, parallelDivide, parallelDot, parallelElementwise, parallelEvery, parallelExp, parallelFilter, parallelFind, parallelForEach, parallelHistogram, parallelLog, parallelMap, parallelMatmul, parallelMatvec, parallelMax, parallelMean, parallelMin, parallelMinMax, parallelMultiply, parallelNegate, parallelNorm, parallelOuter, parallelReduce, parallelScale, parallelSin, parallelSome, parallelSort, parallelSqrt, parallelSquare, parallelStd, parallelSubtract, parallelSum, parallelTan, parallelTranspose, parallelUnary, parallelVariance, partition2D, partitionRange, resolveOpThreshold, rightArithShift, rightLogShift, shouldParallelize$1 as shouldChunkParallelize, shouldParallelize, thresholdDispatcher };
1286
+ export { type BitwiseBinaryOp, type ChunkInfo, type ChunkOptions, type ChunkResult, ComputePool, type ComputePoolConfig, DEFAULT_POOL_CONFIG, DEFAULT_THRESHOLDS, DEFAULT_THRESHOLD_BY_OP, type DispatchResult, type ElementwiseOptions, type ExecutionMode, type MapOptions, type MatmulOptions, type OpName, type OpThreshold, type OperationCategory, type ParallelResult, type ReduceOptions, type ThresholdConfig, ThresholdDispatcher, bitAnd, bitNot, bitOr, bitXor, calculateChunks, calculateOptimalChunks, chunkArray, chunkFloat64Array, computePool, dispatch, leftShift, mergeArrayChunks, mergeFloat64Chunks, parallelAbs, parallelAdd, parallelCos, parallelCount, parallelDistance, parallelDivide, parallelDot, parallelElementwise, parallelEvery, parallelExp, parallelFilter, parallelFind, parallelForEach, parallelHistogram, parallelLog, parallelMap, parallelMatmul, parallelMatvec, parallelMax, parallelMean, parallelMin, parallelMinMax, parallelMultiply, parallelNegate, parallelNorm, parallelOuter, parallelReduce, parallelScale, parallelSin, parallelSome, parallelSort, parallelSqrt, parallelSquare, parallelStd, parallelSubtract, parallelSum, parallelTan, parallelTranspose, parallelUnary, parallelVariance, partition2D, partitionRange, resolveOpThreshold, rightArithShift, rightLogShift, shouldParallelize$1 as shouldChunkParallelize, shouldParallelize, thresholdDispatcher };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielsimonjr/mathts-parallel",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "WebWorker parallelization for MathTS computations",
5
5
  "author": "Daniel Simon Jr.",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@danielsimonjr/mathts-workerpool": "^0.2.1",
35
- "@danielsimonjr/mathts-core": "^0.10.0"
35
+ "@danielsimonjr/mathts-core": "^0.12.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^25.5.2",