語言

Vector.FusedMultiplyAdd 方法

定義

多載

名稱 Description
FusedMultiplyAdd(Vector<Double>, Vector<Double>, Vector<Double>)

計算 (left * right) + addend,四捨五入為一個三元運算。

FusedMultiplyAdd(Vector<Single>, Vector<Single>, Vector<Single>)

計算 (left * right) + addend,四捨五入為一個三元運算。

FusedMultiplyAdd(Vector<Double>, Vector<Double>, Vector<Double>)

來源:
Vector.cs
來源:
Vector.cs
來源:
Vector.cs

計算 (left * right) + addend,四捨五入為一個三元運算。

public:
 static System::Numerics::Vector<double> FusedMultiplyAdd(System::Numerics::Vector<double> left, System::Numerics::Vector<double> right, System::Numerics::Vector<double> addend);
public static System.Numerics.Vector<double> FusedMultiplyAdd(System.Numerics.Vector<double> left, System.Numerics.Vector<double> right, System.Numerics.Vector<double> addend);
static member FusedMultiplyAdd : System.Numerics.Vector<double> * System.Numerics.Vector<double> * System.Numerics.Vector<double> -> System.Numerics.Vector<double>
Public Function FusedMultiplyAdd (left As Vector(Of Double), right As Vector(Of Double), addend As Vector(Of Double)) As Vector(Of Double)

參數

left
Vector<Double>

要 right乘以的向量。

right
Vector<Double>

要 left乘以的向量。

addend
Vector<Double>

要加到結果 left 上的向量乘以 right。

傳回

(left * right) + addend,四捨五入為一個三進位運算。

備註

此計算left * right()時,精度無限大,結果相加 addend 至無限精確度,最後四捨五入至最接近的可表示值。

這與非融合序列不同,非融合序列會以無限精度計算left * right(),將結果四捨五入至最接近的可表示值,再將四捨五入結果相加 addend 至無限精確度,最後四捨五入至最近可表示值。

適用於

FusedMultiplyAdd(Vector<Single>, Vector<Single>, Vector<Single>)

來源:
Vector.cs
來源:
Vector.cs
來源:
Vector.cs

計算 (left * right) + addend,四捨五入為一個三元運算。

public:
 static System::Numerics::Vector<float> FusedMultiplyAdd(System::Numerics::Vector<float> left, System::Numerics::Vector<float> right, System::Numerics::Vector<float> addend);
public static System.Numerics.Vector<float> FusedMultiplyAdd(System.Numerics.Vector<float> left, System.Numerics.Vector<float> right, System.Numerics.Vector<float> addend);
static member FusedMultiplyAdd : System.Numerics.Vector<single> * System.Numerics.Vector<single> * System.Numerics.Vector<single> -> System.Numerics.Vector<single>
Public Function FusedMultiplyAdd (left As Vector(Of Single), right As Vector(Of Single), addend As Vector(Of Single)) As Vector(Of Single)

參數

left
Vector<Single>

要 right乘以的向量。

right
Vector<Single>

要 left乘以的向量。

addend
Vector<Single>

要加到結果 left 上的向量乘以 right。

傳回

(left * right) + addend,四捨五入為一個三進位運算。

備註

此計算left * right()時,精度無限大,結果相加 addend 至無限精確度,最後四捨五入至最接近的可表示值。

這與非融合序列不同,非融合序列會以無限精度計算left * right(),將結果四捨五入至最接近的可表示值,再將四捨五入結果相加 addend 至無限精確度,最後四捨五入至最近可表示值。

適用於