TensorPrimitives.ExpM1<T>(ReadOnlySpan<T>, Span<T>) 方法

定义

计算将 e 提升为指定张量(减 1)中的数字幂的元素运算结果。

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

类型参数

T

参数

x
ReadOnlySpan<T>

张量,表示为范围。

destination
Span<T>

目标张量,表示为范围。

例外

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

注解

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

此方法可以调用基础 C 运行时,或使用特定于当前体系结构的说明。 不同的操作系统或体系结构之间的确切结果可能有所不同。

适用于