Skip to content

Commit 8cb6803

Browse files
Copilotstephentoub
andcommitted
Add tolerance for Asin tests matching Sin/Cos
- Added trigTolerance parameter to Asin test like Sin/Cos - Tolerances: null (if FMA supported) or 1e-10 (double) / 1e-4f (float) Co-authored-by: stephentoub <[email protected]>
1 parent 108d874 commit 8cb6803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Numerics.Tensors/tests/TensorPrimitives.Generic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ public static IEnumerable<object[]> SpanDestinationFunctionsToTest()
462462
yield return Create(TensorPrimitives.Acos, T.Acos);
463463
yield return Create(TensorPrimitives.Asinh, T.Asinh);
464464
yield return Create(TensorPrimitives.AsinPi, T.AsinPi);
465-
yield return Create(TensorPrimitives.Asin, T.Asin);
465+
yield return Create(TensorPrimitives.Asin, T.Asin, trigTolerance);
466466
yield return Create(TensorPrimitives.Atanh, T.Atanh);
467467
yield return Create(TensorPrimitives.AtanPi, T.AtanPi);
468468
yield return Create(TensorPrimitives.Atan, T.Atan);

0 commit comments

Comments
 (0)