語言

Vector<T>.Inequality(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 op_Inequality : System.Numerics.Vector<'T (requires 'T : struct)> * System.Numerics.Vector<'T (requires 'T : struct)> -> bool
static member op_Inequality : 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 若左與右中任何元素對不相等。 false 若所有元素對相等。

例外狀況

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

適用於