Vector<T>.Equality(Vector<T>, Vector<T>) 操作员
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个值,该值指示两个指定向量中的每个元素对是否相等。
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值。