Skip to content

Commit e10f309

Browse files
committed
Uncommented relevant code.
1 parent 62ff903 commit e10f309

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/NumSharp.Core/Selection/NDArray.Indexing.Selection.Getter.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,8 @@ protected static unsafe NDArray<T> FetchIndicesNDNonLinear<T>(NDArray<T> source,
572572
var indexGetters = PrepareIndexGetters(source.Shape, indices);
573573

574574
//compute coordinates
575-
for (int i = 0; i < size; i++)
576-
//Parallel.For(0, size, i => //TODO: make parallel.for
575+
//for (int i = 0; i < size; i++)
576+
Parallel.For(0, size, i => //TODO: make parallel.for
577577
{
578578
int* index = stackalloc int[srcDims];
579579

@@ -588,11 +588,10 @@ protected static unsafe NDArray<T> FetchIndicesNDNonLinear<T>(NDArray<T> source,
588588
//assign
589589
ret[i] = from;
590590
#else
591-
dst[i] = source[index, srcDims];
591+
ret[i] = source[index, srcDims];
592592
#endif
593-
}
594-
595-
//});
593+
});
594+
//}
596595

597596
return ret.flat.reshape(retShape).MakeGeneric<T>();
598597
}

0 commit comments

Comments
 (0)