backup
This commit is contained in:
@@ -36,7 +36,7 @@ public static class CompressStoreTest
|
||||
);
|
||||
}
|
||||
|
||||
private unsafe static void TestPattern_Double(double[] input, bool[] keepPattern)
|
||||
private static unsafe void TestPattern_Double(double[] input, bool[] keepPattern)
|
||||
{
|
||||
// 1. Setup Input Vector
|
||||
// Handle case where Vector<TLane> is smaller than 8 (e.g. 2 or 4)
|
||||
|
||||
@@ -34,7 +34,7 @@ internal unsafe struct Vector2LerpJob : IJobSPMD<float>
|
||||
{
|
||||
var a = MathV.LoadVector2<TLane, float>(ref arrayA[baseIndex].x);
|
||||
var b = MathV.LoadVector2<TLane, float>(ref arrayB[baseIndex].x);
|
||||
|
||||
|
||||
var t = TLane.Create(0.5f);
|
||||
var lerped = MathV.Lerp(a, b, t);
|
||||
var len = TLane.Sqrt(MathV.LengthSquared(lerped));
|
||||
@@ -213,7 +213,7 @@ public class SPMDTest
|
||||
// Verify all normalized vectors have length ~1
|
||||
for (var i = 0; i < count; i++)
|
||||
{
|
||||
var length = math.sqrt(output[i].x * output[i].x + output[i].y * output[i].y +
|
||||
var length = math.sqrt(output[i].x * output[i].x + output[i].y * output[i].y +
|
||||
output[i].z * output[i].z + output[i].w * output[i].w);
|
||||
Assert.AreEqual(1.0f, length, 0.001f, $"Vector at index {i} is not normalized");
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ using Misaki.HighPerformance.LowLevel.Collections;
|
||||
using Misaki.HighPerformance.LowLevel.Utilities;
|
||||
using Misaki.HighPerformance.Mathematics.SPMD;
|
||||
using Misaki.HighPerformance.Test.Jobs;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Misaki.HighPerformance.Test.UnitTest.Jobs;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user