TensorPrimitives.AddMultiply 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddMultiply(ReadOnlySpan<Single>, ReadOnlySpan<Single>, Single, Span<Single>) |
计算指定张量 |
AddMultiply(ReadOnlySpan<Single>, Single, ReadOnlySpan<Single>, Span<Single>) |
计算指定张量 |
AddMultiply(ReadOnlySpan<Single>, ReadOnlySpan<Single>, ReadOnlySpan<Single>, Span<Single>) |
计算指定张量 |
AddMultiply<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, ReadOnlySpan<T>, Span<T>) |
计算指定张量 |
AddMultiply<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, T, Span<T>) |
计算指定张量 |
AddMultiply<T>(ReadOnlySpan<T>, T, ReadOnlySpan<T>, Span<T>) |
计算指定张量 |
AddMultiply(ReadOnlySpan<Single>, ReadOnlySpan<Single>, Single, Span<Single>)
- Source:
- TensorPrimitives.cs
- Source:
- TensorPrimitives.Single.cs
计算指定张量 (
的元素运算结果。x
+ y
) * multiplier
public:
static void AddMultiply(ReadOnlySpan<float> x, ReadOnlySpan<float> y, float multiplier, Span<float> destination);
public static void AddMultiply (ReadOnlySpan<float> x, ReadOnlySpan<float> y, float multiplier, Span<float> destination);
static member AddMultiply : ReadOnlySpan<single> * ReadOnlySpan<single> * single * Span<single> -> unit
Public Shared Sub AddMultiply (x As ReadOnlySpan(Of Single), y As ReadOnlySpan(Of Single), multiplier As Single, destination As Span(Of Single))
参数
第一个张量,表示为范围。
第二个张量,表示为范围。
- multiplier
- Single
第三个张量,表示为标量。
例外
y
和 destination
引用重叠的内存位置,并且不在同一位置开始。
注解
此方法有效地计算
。destination
[i] = (x
[i] + y
[i]) * multiplier
如果任何元素输入值等于 NaN,则生成的元素值也是 NaN。
适用于
AddMultiply(ReadOnlySpan<Single>, Single, ReadOnlySpan<Single>, Span<Single>)
- Source:
- TensorPrimitives.cs
- Source:
- TensorPrimitives.Single.cs
计算指定张量 (
的元素运算结果。x
+ y
) * multiplier
public:
static void AddMultiply(ReadOnlySpan<float> x, float y, ReadOnlySpan<float> multiplier, Span<float> destination);
public static void AddMultiply (ReadOnlySpan<float> x, float y, ReadOnlySpan<float> multiplier, Span<float> destination);
static member AddMultiply : ReadOnlySpan<single> * single * ReadOnlySpan<single> * Span<single> -> unit
Public Shared Sub AddMultiply (x As ReadOnlySpan(Of Single), y As Single, multiplier As ReadOnlySpan(Of Single), destination As Span(Of Single))
参数
第一个张量,表示为范围。
- y
- Single
第二个张量,表示为标量。
- multiplier
- ReadOnlySpan<Single>
第三个张量,表示为范围。
例外
multiplier
和 destination
引用重叠的内存位置,并且不在同一位置开始。
注解
此方法有效地计算
。destination
[i] = (x
[i] + y
) * multiplier
[i]
如果任何元素输入值等于 NaN,则生成的元素值也是 NaN。
适用于
AddMultiply(ReadOnlySpan<Single>, ReadOnlySpan<Single>, ReadOnlySpan<Single>, Span<Single>)
- Source:
- TensorPrimitives.cs
- Source:
- TensorPrimitives.Single.cs
计算指定张量 (
的元素运算结果。x
+ y
) * multiplier
public:
static void AddMultiply(ReadOnlySpan<float> x, ReadOnlySpan<float> y, ReadOnlySpan<float> multiplier, Span<float> destination);
public static void AddMultiply (ReadOnlySpan<float> x, ReadOnlySpan<float> y, ReadOnlySpan<float> multiplier, Span<float> destination);
static member AddMultiply : ReadOnlySpan<single> * ReadOnlySpan<single> * ReadOnlySpan<single> * Span<single> -> unit
Public Shared Sub AddMultiply (x As ReadOnlySpan(Of Single), y As ReadOnlySpan(Of Single), multiplier As ReadOnlySpan(Of Single), destination As Span(Of Single))
参数
第一个张量,表示为范围。
第二个张量,表示为范围。
- multiplier
- ReadOnlySpan<Single>
第三个张量,表示为范围。
例外
multiplier
和 destination
引用重叠的内存位置,并且不在同一位置开始。
注解
此方法有效地计算
。destination
[i] = (x
[i] + y
[i]) * multiplier
[i]
如果任何元素输入值等于 NaN,则生成的元素值也是 NaN。
适用于
AddMultiply<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, ReadOnlySpan<T>, Span<T>)
计算指定张量 (
的元素运算结果。x
+ y
) * multiplier
public:
generic <typename T>
where T : System::Numerics::IAdditionOperators<T, T, T>, System::Numerics::IMultiplyOperators<T, T, T> static void AddMultiply(ReadOnlySpan<T> x, ReadOnlySpan<T> y, ReadOnlySpan<T> multiplier, Span<T> destination);
public static void AddMultiply<T> (ReadOnlySpan<T> x, ReadOnlySpan<T> y, ReadOnlySpan<T> multiplier, Span<T> destination) where T : System.Numerics.IAdditionOperators<T,T,T>, System.Numerics.IMultiplyOperators<T,T,T>;
static member AddMultiply : ReadOnlySpan<'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T>)> * ReadOnlySpan<'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T>)> * ReadOnlySpan<'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T>)> * Span<'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T>)> -> unit (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T>)
Public Shared Sub AddMultiply(Of T As {IAdditionOperators(Of T, T, T), IMultiplyOperators(Of T, T, T)}) (x As ReadOnlySpan(Of T), y As ReadOnlySpan(Of T), multiplier As ReadOnlySpan(Of T), destination As Span(Of T))
类型参数
- T
参数
第一个张量,表示为范围。
第二个张量,表示为范围。
- multiplier
- ReadOnlySpan<T>
第三个张量,表示为范围。
- destination
- Span<T>
目标张量,表示为范围。
例外
multiplier
和 destination
引用重叠的内存位置,并且不在同一位置开始。
注解
此方法有效地计算
。destination
[i] = (x
[i] + y
[i]) * multiplier
[i]
如果任何元素输入值等于 NaN,则生成的元素值也是 NaN。
适用于
AddMultiply<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, T, Span<T>)
计算指定张量 (
的元素运算结果。x
+ y
) * multiplier
public:
generic <typename T>
where T : System::Numerics::IAdditionOperators<T, T, T>, System::Numerics::IMultiplyOperators<T, T, T> static void AddMultiply(ReadOnlySpan<T> x, ReadOnlySpan<T> y, T multiplier, Span<T> destination);
public static void AddMultiply<T> (ReadOnlySpan<T> x, ReadOnlySpan<T> y, T multiplier, Span<T> destination) where T : System.Numerics.IAdditionOperators<T,T,T>, System.Numerics.IMultiplyOperators<T,T,T>;
static member AddMultiply : ReadOnlySpan<'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T>)> * ReadOnlySpan<'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T>)> * 'T * Span<'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T>)> -> unit (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T>)
Public Shared Sub AddMultiply(Of T As {IAdditionOperators(Of T, T, T), IMultiplyOperators(Of T, T, T)}) (x As ReadOnlySpan(Of T), y As ReadOnlySpan(Of T), multiplier As T, destination As Span(Of T))
类型参数
- T
参数
第一个张量,表示为范围。
第二个张量,表示为范围。
- multiplier
- T
第三个张量,表示为标量。
- destination
- Span<T>
目标张量,表示为范围。
例外
y
和 destination
引用重叠的内存位置,并且不在同一位置开始。
注解
此方法有效地计算
。destination
[i] = (x
[i] + y
[i]) * multiplier
如果任何元素输入值等于 NaN,则生成的元素值也是 NaN。
适用于
AddMultiply<T>(ReadOnlySpan<T>, T, ReadOnlySpan<T>, Span<T>)
计算指定张量 (
的元素运算结果。x
+ y
) * multiplier
public:
generic <typename T>
where T : System::Numerics::IAdditionOperators<T, T, T>, System::Numerics::IMultiplyOperators<T, T, T> static void AddMultiply(ReadOnlySpan<T> x, T y, ReadOnlySpan<T> multiplier, Span<T> destination);
public static void AddMultiply<T> (ReadOnlySpan<T> x, T y, ReadOnlySpan<T> multiplier, Span<T> destination) where T : System.Numerics.IAdditionOperators<T,T,T>, System.Numerics.IMultiplyOperators<T,T,T>;
static member AddMultiply : ReadOnlySpan<'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T>)> * 'T * ReadOnlySpan<'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T>)> * Span<'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T>)> -> unit (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T>)
Public Shared Sub AddMultiply(Of T As {IAdditionOperators(Of T, T, T), IMultiplyOperators(Of T, T, T)}) (x As ReadOnlySpan(Of T), y As T, multiplier As ReadOnlySpan(Of T), destination As Span(Of T))
类型参数
- T
参数
第一个张量,表示为范围。
- y
- T
第二个张量,表示为标量。
- multiplier
- ReadOnlySpan<T>
第三个张量,表示为范围。
- destination
- Span<T>
目标张量,表示为范围。
例外
multiplier
和 destination
引用重叠的内存位置,并且不在同一位置开始。
注解
此方法有效地计算
。destination
[i] = (x
[i] + y
) * multiplier
[i]
如果任何元素输入值等于 NaN,则生成的元素值也是 NaN。