Fixed the bug that Vector type in SPMD does not work as expected

This commit is contained in:
2026-02-22 11:57:49 +09:00
parent f4c929fd88
commit 49dc44605b
3 changed files with 13 additions and 5 deletions

View File

@@ -140,7 +140,7 @@ public static unsafe partial class MathV
<#= TLaneRestrictions #>
<#= TNumberRestrictions #>
{
return a.x * b.x + a.y * b.y;
return <#= ForEachDimension(dimension, i => $"a.{components[i]} * b.{components[i]}", " + ") #>;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]