fix cubetree init crash.

This commit is contained in:
2026-02-17 15:51:23 +08:00
parent 1a8a3b59d2
commit a21240016f
671 changed files with 12580 additions and 1166 deletions
@@ -933,6 +933,42 @@ If the data has not been reduced, the return value is not evaluated by the reduc
<a id="Hi_Geom_NativeFraction_ComparePerformanceTest_" data-uid="Hi.Geom.NativeFraction.ComparePerformanceTest*"></a>
<h3 id="Hi_Geom_NativeFraction_ComparePerformanceTest_System_Int32_System_Int32_" data-uid="Hi.Geom.NativeFraction.ComparePerformanceTest(System.Int32,System.Int32)">
ComparePerformanceTest(int, int)
</h3>
<div class="markdown level1 summary"><p>Comparative performance test between pure C# Fraction and NativeFraction (C++ backend).</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void ComparePerformanceTest(int iterations = 128, int rounds = 16)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>iterations</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>Number of accumulation steps per round.</p>
</dd>
<dt><code>rounds</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>Number of rounds to average timing.</p>
</dd>
</dl>
<a id="Hi_Geom_NativeFraction_CompareTo_" data-uid="Hi.Geom.NativeFraction.CompareTo*"></a>
<h3 id="Hi_Geom_NativeFraction_CompareTo_Hi_Geom_NativeFraction_" data-uid="Hi.Geom.NativeFraction.CompareTo(Hi.Geom.NativeFraction)">
@@ -1323,6 +1359,44 @@ If the data has not been reduced, the return value is not evaluated by the reduc
<a id="Hi_Geom_NativeFraction_PerformanceTest_" data-uid="Hi.Geom.NativeFraction.PerformanceTest*"></a>
<h3 id="Hi_Geom_NativeFraction_PerformanceTest_System_Int32_System_Int32_" data-uid="Hi.Geom.NativeFraction.PerformanceTest(System.Int32,System.Int32)">
PerformanceTest(int, int)
</h3>
<div class="markdown level1 summary"><p>Performance test for NativeFraction (C++ backend).
Test 1: Accumulative += with Val (bounded, linear growth).
Test 2: Bounded arithmetic (converging average).</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void PerformanceTest(int iterations = 128, int rounds = 16)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>iterations</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>Number of steps per round.</p>
</dd>
<dt><code>rounds</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>Number of rounds to average timing.</p>
</dd>
</dl>
<a id="Hi_Geom_NativeFraction_PositiveInf_" data-uid="Hi.Geom.NativeFraction.PositiveInf*"></a>
<h3 id="Hi_Geom_NativeFraction_PositiveInf" data-uid="Hi.Geom.NativeFraction.PositiveInf">