Tensor.EqualsAll Method

Definition

Overloads

EqualsAll<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Compares the elements of two ReadOnlyTensorSpan<T> to see if all elements of x are equal to y. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size before they are compared. It returns a Boolean where the value is true if all elements in x are eqaul to y.

EqualsAll<T>(ReadOnlyTensorSpan<T>, T)

Compares the elements of two ReadOnlyTensorSpan<T> to see if all elements of x are equal to y. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size before they are compared. It returns a Boolean where the value is true if all elements in x are eqaul to y.

EqualsAll<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs

Compares the elements of two ReadOnlyTensorSpan<T> to see if all elements of x are equal to y. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size before they are compared. It returns a Boolean where the value is true if all elements in x are eqaul to y.

public:
generic <typename T>
 where T : System::Numerics::IEqualityOperators<T, T, bool> static bool EqualsAll(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y);
public static bool EqualsAll<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 EqualsAll : ReadOnlyTensorSpan * ReadOnlyTensorSpan -> bool (requires 'T :> System.Numerics.IEqualityOperators<'T, 'T, bool>)
Public Function EqualsAll(Of T As IEqualityOperators(Of T, T, Boolean)) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef y As ReadOnlyTensorSpan(Of T)) As Boolean

Type Parameters

T

Parameters

y
ReadOnlyTensorSpan<T>

Second ReadOnlyTensorSpan<T> to compare against.

Returns

Boolean where the value is true if all elements in x are equal to y.

Applies to

EqualsAll<T>(ReadOnlyTensorSpan<T>, T)

Source:
TensorExtensions.cs

Compares the elements of two ReadOnlyTensorSpan<T> to see if all elements of x are equal to y. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size before they are compared. It returns a Boolean where the value is true if all elements in x are eqaul to y.

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

Type Parameters

T

Parameters

y
T

Second ReadOnlyTensorSpan<T> to compare against.

Returns

Boolean where the value is true if all elements in x are equal to y.

Applies to