Uredi

Deli z drugimi prek


Vector<T>.Equality(Vector<T>, Vector<T>) Operator

Definition

Returns a value that indicates whether each pair of elements in two specified vectors are equal.

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

Parameters

left
Vector<T>

The first vector to compare.

right
Vector<T>

The second vector to compare.

Returns

true if left and right are equal; otherwise, false.

Exceptions

.NET 5 and later: Type T is not supported.

Remarks

Two vectors are equal if they are of the same type, have the same number of values, and each value in left is equal to the corresponding value in right.

Applies to