Share via


ReadOnlyTensorSpan<T>.Inequality Operator

Definition

Returns a value that indicates whether two tensor spans are not 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 op_Inequality : 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 not equal; otherwise, false.

Remarks

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

Applies to