Skip to content

Commit

Permalink
Uncommented relevant code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nucs committed Dec 31, 2019
1 parent 62ff903 commit e10f309
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/NumSharp.Core/Selection/NDArray.Indexing.Selection.Getter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,8 @@ protected static unsafe NDArray<T> FetchIndicesNDNonLinear<T>(NDArray<T> source,
var indexGetters = PrepareIndexGetters(source.Shape, indices);

//compute coordinates
for (int i = 0; i < size; i++)
//Parallel.For(0, size, i => //TODO: make parallel.for
//for (int i = 0; i < size; i++)
Parallel.For(0, size, i => //TODO: make parallel.for
{
int* index = stackalloc int[srcDims];
Expand All @@ -588,11 +588,10 @@ protected static unsafe NDArray<T> FetchIndicesNDNonLinear<T>(NDArray<T> source,
//assign
ret[i] = from;
#else
dst[i] = source[index, srcDims];
ret[i] = source[index, srcDims];
#endif
}

//});
});
//}

return ret.flat.reshape(retShape).MakeGeneric<T>();
}
Expand Down

0 comments on commit e10f309

Please sign in to comment.