語言

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

定義

回傳一個值,表示兩個指定向量中每對元素是否相等。

public:
 static bool operator ==(System::Numerics::Vector<T> left, System::Numerics::Vector<T> right);
public static bool 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)> -> bool
static member ( = ) : System.Numerics.Vector<'T> * System.Numerics.Vector<'T> -> bool
Public Shared Operator == (left As Vector(Of T), right As Vector(Of T)) As Boolean

參數

left
Vector<T>

要比較的第一個向量。

right
Vector<T>

要比較的第二個向量。

傳回

true若 left 且right相等;否則 。 false

例外狀況

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

備註

若兩個向量類型相同、值數相同,且每個值 left 等於 中的 right對應值,則稱它們相等。

適用於