Share via


ReadOnlyTensorSpan<T>.Equality Operator

Definition

Returns a value that indicates whether two tensor spans are equal.

public:
 static bool operator ==(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % left, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % right);
public static bool operator ==(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right);
static member ( = ) : ReadOnlyTensorSpan * ReadOnlyTensorSpan -> bool
Public Shared Operator == (ByRef left As ReadOnlyTensorSpan(Of T), ByRef right As ReadOnlyTensorSpan(Of T)) As Boolean

Parameters

left
ReadOnlyTensorSpan<T>

The first tensor span to compare.

right
ReadOnlyTensorSpan<T>

The second tensor span to compare.

Returns

true if the two tensor span are equal; otherwise, false.

Remarks

Two tensor span are equal if they have the same length and the corresponding elements of left and right point to the same memory. Note that the test for equality does not attempt to determine whether the contents are equal.

Applies to