語言

Vector<T>.Addition(Vector<T>, Vector<T>) 運算子

定義

將兩個向量相加。

public:
 static System::Numerics::Vector<T> operator +(System::Numerics::Vector<T> left, System::Numerics::Vector<T> right);
public static System.Numerics.Vector<T> operator +(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right);
static member ( + ) : System.Numerics.Vector<'T (requires 'T : struct)> * System.Numerics.Vector<'T (requires 'T : struct)> -> System.Numerics.Vector<'T (requires 'T : struct)>
static member ( + ) : System.Numerics.Vector<'T> * System.Numerics.Vector<'T> -> System.Numerics.Vector<'T>
Public Shared Operator + (left As Vector(Of T), right As Vector(Of T)) As Vector(Of T)

參數

left
Vector<T>

這是第一個要加入的向量。

right
Vector<T>

第二個要補充的向量。

傳回

加總向量。

例外狀況

.NET 5 及以後版本:不支援型別 T 。

備註

此 Addition 方法定義了物件的 Vector<T> 加法運算。

適用於