TensorPrimitives.RadiansToDegrees<T> 方法

定义

计算指定张量到度中的每个弧度的元素级转换。

public:
generic <typename T>
 where T : System::Numerics::ITrigonometricFunctions<T> static void RadiansToDegrees(ReadOnlySpan<T> x, Span<T> destination);
public static void RadiansToDegrees<T> (ReadOnlySpan<T> x, Span<T> destination) where T : System.Numerics.ITrigonometricFunctions<T>;
static member RadiansToDegrees : ReadOnlySpan<'T (requires 'T :> System.Numerics.ITrigonometricFunctions<'T>)> * Span<'T (requires 'T :> System.Numerics.ITrigonometricFunctions<'T>)> -> unit (requires 'T :> System.Numerics.ITrigonometricFunctions<'T>)
Public Shared Sub RadiansToDegrees(Of T As ITrigonometricFunctions(Of T)) (x As ReadOnlySpan(Of T), destination As Span(Of T))

类型参数

T

参数

x
ReadOnlySpan<T>

张量,表示为范围。

destination
Span<T>

目标张量,表示为范围。

例外

xdestination 引用重叠的内存位置,并且不在同一位置开始。

注解

此方法有效地计算 destination[i] = T.RadiansToDegrees(x[i])

适用于