Browse Source

Parallel: added zero check, but aggregates still need fast forwards

Signed-off-by: Marcus Cuda <marcus@cuda.net>
la-knuth
Marcus Cuda 17 years ago
parent
commit
f50b19f939
  1. 10
      src/Numerics/Threading/Parallel.cs

10
src/Numerics/Threading/Parallel.cs

@ -128,6 +128,16 @@ namespace MathNet.Numerics.Threading
var tasks = new Task<T>[ThreadQueue.ThreadCount];
var size = count / tasks.Length;
if (count <= 1)
{
// if (count == 1)
// {
// body(fromInclusive);
// }
// return;
}
var intial = localInit();
// partition the jobs into separate sets for each but the last worked thread

Loading…
Cancel
Save