Del via


Tensor.Equals Method

Definition

Overloads

Equals<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Compares the elements of two ReadOnlyTensorSpan<T> for equality. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size before they are compared. It returns a TensorSpan<T> where the value is true if the elements are equal and false if they are not."/>

Equals<T>(ReadOnlyTensorSpan<T>, T)

Compares the elements of two ReadOnlyTensorSpan<T> for equality. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size before they are compared. It returns a TensorSpan<T> where the value is true if the elements are equal and false if they are not."/>

Equals<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<Boolean>)

Compares the elements of two ReadOnlyTensorSpan<T> for equality. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size before they are compared. It returns a TensorSpan<T> where the value is true if the elements are equal and false if they are not."/>

Equals<T>(ReadOnlyTensorSpan<T>, T, TensorSpan<Boolean>)

Compares the elements of two ReadOnlyTensorSpan<T> for equality. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size before they are compared. It returns a TensorSpan<T> where the value is true if the elements are equal and false if they are not."/>

Equals<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs

Compares the elements of two ReadOnlyTensorSpan<T> for equality. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size before they are compared. It returns a TensorSpan<T> where the value is true if the elements are equal and false if they are not."/>

public:
generic <typename T>
 where T : System::Numerics::IEqualityOperators<T, T, bool> static System::Numerics::Tensors::Tensor<bool> ^ Equals(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y);
public static System.Numerics.Tensors.Tensor<bool> Equals<T> (in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IEqualityOperators<T,T,bool>;
static member Equals : ReadOnlyTensorSpan * ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<bool> (requires 'T :> System.Numerics.IEqualityOperators<'T, 'T, bool>)
Public Function Equals(Of T As IEqualityOperators(Of T, T, Boolean)) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef y As ReadOnlyTensorSpan(Of T)) As Tensor(Of Boolean)

Type Parameters

T

Parameters

Returns

A TensorSpan<T> where the value is true if the elements are equal and false if they are not.

Applies to

Equals<T>(ReadOnlyTensorSpan<T>, T)

Source:
TensorExtensions.cs

Compares the elements of two ReadOnlyTensorSpan<T> for equality. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size before they are compared. It returns a TensorSpan<T> where the value is true if the elements are equal and false if they are not."/>

public:
generic <typename T>
 where T : System::Numerics::IEqualityOperators<T, T, bool> static System::Numerics::Tensors::Tensor<bool> ^ Equals(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, T y);
public static System.Numerics.Tensors.Tensor<bool> Equals<T> (in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IEqualityOperators<T,T,bool>;
static member Equals : ReadOnlyTensorSpan * 'T -> System.Numerics.Tensors.Tensor<bool> (requires 'T :> System.Numerics.IEqualityOperators<'T, 'T, bool>)
Public Function Equals(Of T As IEqualityOperators(Of T, T, Boolean)) (ByRef x As ReadOnlyTensorSpan(Of T), y As T) As Tensor(Of Boolean)

Type Parameters

T

Parameters

y
T

Second value to compare.

Returns

A TensorSpan<T> where the value is true if the elements are equal and false if they are not.

Applies to

Equals<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<Boolean>)

Source:
TensorExtensions.cs

Compares the elements of two ReadOnlyTensorSpan<T> for equality. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size before they are compared. It returns a TensorSpan<T> where the value is true if the elements are equal and false if they are not."/>

public:
generic <typename T>
 where T : System::Numerics::IEqualityOperators<T, T, bool> static System::Numerics::Tensors::TensorSpan<T> ^ Equals(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y, System::Numerics::Tensors::TensorSpan<bool> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> Equals<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IEqualityOperators<T,T,bool>;
static member Equals : ReadOnlyTensorSpan * ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IEqualityOperators<'T, 'T, bool>)
Public Function Equals(Of T As IEqualityOperators(Of T, T, Boolean)) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef y As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of Boolean)) As TensorSpan(Of Boolean)

Type Parameters

T

Parameters

destination
TensorSpan<Boolean>

Returns

A TensorSpan<T> where the value is true if the elements are equal and false if they are not.

Applies to

Equals<T>(ReadOnlyTensorSpan<T>, T, TensorSpan<Boolean>)

Source:
TensorExtensions.cs

Compares the elements of two ReadOnlyTensorSpan<T> for equality. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size before they are compared. It returns a TensorSpan<T> where the value is true if the elements are equal and false if they are not."/>

public:
generic <typename T>
 where T : System::Numerics::IEqualityOperators<T, T, bool> static System::Numerics::Tensors::TensorSpan<T> ^ Equals(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, T y, System::Numerics::Tensors::TensorSpan<bool> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> Equals<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IEqualityOperators<T,T,bool>;
static member Equals : ReadOnlyTensorSpan * 'T * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IEqualityOperators<'T, 'T, bool>)
Public Function Equals(Of T As IEqualityOperators(Of T, T, Boolean)) (ByRef x As ReadOnlyTensorSpan(Of T), y As T, ByRef destination As TensorSpan(Of Boolean)) As TensorSpan(Of Boolean)

Type Parameters

T

Parameters

y
T

Second value to compare.

destination
TensorSpan<Boolean>

Returns

A TensorSpan<T> where the value is true if the elements are equal and false if they are not.

Applies to