Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,11 @@ public static IEnumerable<object[]> SpanDestinationFunctionsToTest()
// The current trigonometric algorithm depends on hardware FMA support for best precision.
// Even with FMA, ARM64 vectorized trig can diverge a few tens of ULPs from scalar.
T? trigTolerance = IsFmaSupported
? Helpers.DetermineTolerance<T>(doubleTolerance: 1e-14, floatTolerance: 1e-5f)
? Helpers.DetermineTolerance<T>(doubleTolerance: 3e-14, floatTolerance: 1e-5f)
: Helpers.DetermineTolerance<T>(doubleTolerance: 1e-10, floatTolerance: 1e-4f);
T? tanTolerance = IsFmaSupported
? Helpers.DetermineTolerance<T>(doubleTolerance: 3e-13, floatTolerance: 1e-4f)
: trigTolerance;
Comment thread
kotlarmilos marked this conversation as resolved.
Comment thread
kotlarmilos marked this conversation as resolved.

yield return Create(TensorPrimitives.Acosh, T.Acosh);
yield return Create(TensorPrimitives.AcosPi, T.AcosPi);
Expand Down Expand Up @@ -507,7 +510,7 @@ public static IEnumerable<object[]> SpanDestinationFunctionsToTest()
yield return Create(TensorPrimitives.Sinh, T.Sinh, Helpers.DetermineTolerance<T>(doubleTolerance: 1e-14));
yield return Create(TensorPrimitives.SinPi, T.SinPi, Helpers.DetermineTolerance<T>(doubleTolerance: 1e-13, floatTolerance: 1e-4f));
yield return Create(TensorPrimitives.Sqrt, T.Sqrt);
yield return Create(TensorPrimitives.Tan, T.Tan, trigTolerance);
yield return Create(TensorPrimitives.Tan, T.Tan, tanTolerance);
yield return Create(TensorPrimitives.Tanh, T.Tanh);
yield return Create(TensorPrimitives.TanPi, T.TanPi);
yield return Create(TensorPrimitives.Truncate, T.Truncate);
Expand Down
Loading