Daily update on 20250921-173333 by Nitload Youmu. Additional Message : New design of matrix enumeration, capable for parallel task publication.

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-09-21 17:33:33 +08:00
parent 0404ecf044
commit b8a51c13dd
15 changed files with 463 additions and 304 deletions
+3 -11
View File
@@ -59,29 +59,21 @@ namespace StgSharp
{
try
{
<<<<<<< HEAD
World.Init();
TestMatrixParallel();
// 原有的矩阵测试代码
=======
MatrixParallelThreadTest.TestMatrixParallelThreadScheduling();
/*
>>>>>>> 8007eee8461498a85a9515e8fd076f03cb552b64
HybridLayerSegregatedFitAllocator hlsf = new HybridLayerSegregatedFitAllocator(64 * 400 * 400);
Matrix<float> m = Matrix<float>.FromHlsf(400, 200, hlsf);
int i = 0, ii = 0;
<<<<<<< HEAD
foreach (Segment lines in m.GetRowEnumeration())
=======
foreach (MatrixSegment lines in m.GetRowEnumeration())
>>>>>>> 8007eee8461498a85a9515e8fd076f03cb552b64
foreach (MatrixSegment<float> lines in m.GetRowEnumeration())
{
i = 0;
foreach (MatrixKernel* item in lines)
foreach (MatrixKernel<float>* item in lines)
{
i++;
Console.WriteLine(i);