This commit is contained in:
Youmu Liu
2025-10-28 20:44:38 +08:00
parent e1ec761e83
commit daf9076e54
3 changed files with 49 additions and 18 deletions
-6
View File
@@ -25,15 +25,9 @@
//
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance
{
+2 -2
View File
@@ -167,7 +167,7 @@ namespace StgSharp.Mathematics.Numeric
{
private readonly MatrixKernel<T>* _source = enumeration._source;
private int _indexCount = 0;
private int _indexCount = -1;
private readonly int _stride = enumeration.PrimStride;
private readonly long _bound = (long)enumeration.PrimSize * enumeration.PrimStride;
private long _index = (long)enumeration.PrimOffset * enumeration.PrimStride;
@@ -230,7 +230,7 @@ namespace StgSharp.Mathematics.Numeric
private readonly int _end = segment._size;
private int _indexCount = 0;
private int _indexCount = -1;
private readonly long _bound = (long)segment._size * segment._stride;
private long _index = (long)segment._offset * segment._stride;
private readonly MatrixSegment<T> _segment = segment;