public void Multiply() { initializeArrays(); Vector3Fallbacks.Multiply(vec1, vec2, result); for (int i = 0; i < arrLength; i++) { Assert.True(result[i].ApproximatelyEquals(vec1[i] * vec2[i])); } }
public void Multiply() { Assert.True(Avx.IsSupported); initializeArrays(); Vector3Fallbacks.Multiply(vec1, vec2, result); Vector3Avx.Multiply(vec1, vec2, actual); for (int i = 0; i < arrLength; i++) { Assert.True(result[i].ApproximatelyEquals(actual[i]), $"index: {i}, result: {result[i]}, actual: {actual[i]}"); } }