TensorPrimitives.Atan2Pi Method

Definition

Overloads

Atan2Pi<T>(ReadOnlySpan<T>, T, Span<T>)

Computes the element-wise arc-tangent for the quotient of two values in the specified tensors and divides the result by Pi.

Atan2Pi<T>(T, ReadOnlySpan<T>, Span<T>)

Computes the element-wise arc-tangent for the quotient of two values in the specified tensors and divides the result by Pi.

Atan2Pi<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Span<T>)

Computes the element-wise arc-tangent for the quotient of two values in the specified tensors and divides the result by Pi.

Atan2Pi<T>(ReadOnlySpan<T>, T, Span<T>)

Source:
TensorPrimitives.Atan2Pi.cs
Source:
TensorPrimitives.Atan2Pi.cs

Computes the element-wise arc-tangent for the quotient of two values in the specified tensors and divides the result by Pi.

public static void Atan2Pi<T> (ReadOnlySpan<T> y, T x, Span<T> destination) where T : System.Numerics.IFloatingPointIeee754<T>;

Type Parameters

T

Parameters

y
ReadOnlySpan<T>

The first tensor, represented as a span.

x
T

The second tensor, represented as a scalar.

destination
Span<T>

The destination tensor, represented as a span.

Exceptions

y and destination reference overlapping memory locations and do not begin at the same location.

Remarks

This method effectively computes destination[i] = T.Atan2(y[i], x).

This method may call into the underlying C runtime or employ instructions specific to the current architecture. Exact results may differ between different operating systems or architectures.

Applies to

.NET 9 (package-provided) and .NET 8 (package-provided)
Product Versions
.NET 8 (package-provided), 9 (package-provided)

Atan2Pi<T>(T, ReadOnlySpan<T>, Span<T>)

Source:
TensorPrimitives.Atan2Pi.cs
Source:
TensorPrimitives.Atan2Pi.cs

Computes the element-wise arc-tangent for the quotient of two values in the specified tensors and divides the result by Pi.

public static void Atan2Pi<T> (T y, ReadOnlySpan<T> x, Span<T> destination) where T : System.Numerics.IFloatingPointIeee754<T>;

Type Parameters

T

Parameters

y
T

The first tensor, represented as a scalar.

x
ReadOnlySpan<T>

The second tensor, represented as a span.

destination
Span<T>

The destination tensor, represented as a span.

Exceptions

x and destination reference overlapping memory locations and do not begin at the same location.

Remarks

This method effectively computes destination[i] = T.Atan2(y, x[i]).

This method may call into the underlying C runtime or employ instructions specific to the current architecture. Exact results may differ between different operating systems or architectures.

Applies to

.NET 9 (package-provided) and .NET 8 (package-provided)
Product Versions
.NET 8 (package-provided), 9 (package-provided)

Atan2Pi<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Span<T>)

Source:
TensorPrimitives.Atan2Pi.cs
Source:
TensorPrimitives.Atan2Pi.cs

Computes the element-wise arc-tangent for the quotient of two values in the specified tensors and divides the result by Pi.

public static void Atan2Pi<T> (ReadOnlySpan<T> y, ReadOnlySpan<T> x, Span<T> destination) where T : System.Numerics.IFloatingPointIeee754<T>;

Type Parameters

T

Parameters

y
ReadOnlySpan<T>

The first tensor, represented as a span.

x
ReadOnlySpan<T>

The second tensor, represented as a span.

destination
Span<T>

The destination tensor, represented as a span.

Exceptions

x and destination reference overlapping memory locations and do not begin at the same location.

Remarks

This method effectively computes destination[i] = T.Atan2(y[i], x[i]).

This method may call into the underlying C runtime or employ instructions specific to the current architecture. Exact results may differ between different operating systems or architectures.

Applies to

.NET 9 (package-provided) and .NET 8 (package-provided)
Product Versions
.NET 8 (package-provided), 9 (package-provided)