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>

要比較的第二個向量。

傳回

如果 leftright 相等,則為 true;否則為 false

例外狀況

.NET 5 和更新版本:不支援類型 T

備註

如果兩個向量屬於相同的類型、具有相同數目的值,且 中的每個 left 值都等於 中的 right 對應值。

適用於