Читати англійською

Поділитися через


Tensor.LessThanOrEqualAny Method

Definition

Overloads

LessThanOrEqualAny<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Compares the elements of two ReadOnlyTensorSpan<T> to see if any elements of x are less than 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 any elements in x are less than y.

LessThanOrEqualAny<T>(ReadOnlyTensorSpan<T>, T)

Compares the elements of two ReadOnlyTensorSpan<T> to see if any elements of x are less than 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 any elements in x are less than y.

LessThanOrEqualAny<T>(T, ReadOnlyTensorSpan<T>)

Compares the elements of two ReadOnlyTensorSpan<T> to see if any elements of y are less than 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 any elements in y are less than y.

LessThanOrEqualAny<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Compares the elements of two ReadOnlyTensorSpan<T> to see if any elements of x are less than 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 any elements in x are less than y.

C#
public static bool LessThanOrEqualAny<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T,T,bool>;

Type Parameters

T

Parameters

y
ReadOnlyTensorSpan<T>

Second ReadOnlyTensorSpan<T> to compare against.

Returns

Boolean where the value is true if any elements in x are less than y.

Applies to

.NET 10 (package-provided) та інші версії
Продукт Версії
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

LessThanOrEqualAny<T>(ReadOnlyTensorSpan<T>, T)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Compares the elements of two ReadOnlyTensorSpan<T> to see if any elements of x are less than 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 any elements in x are less than y.

C#
public static bool LessThanOrEqualAny<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IComparisonOperators<T,T,bool>;

Type Parameters

T

Parameters

y
T

Second value to compare against.

Returns

Boolean where the value is true if any elements in x are less than y.

Applies to

.NET 10 (package-provided) та інші версії
Продукт Версії
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

LessThanOrEqualAny<T>(T, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Compares the elements of two ReadOnlyTensorSpan<T> to see if any elements of y are less than 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 any elements in y are less than y.

C#
public static bool LessThanOrEqualAny<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T,T,bool>;

Type Parameters

T

Parameters

x
T

First value to compare.

y
ReadOnlyTensorSpan<T>

Second value to compare against.

Returns

Boolean where the value is true if any elements in y are less than y.

Applies to

.NET 10 (package-provided) та інші версії
Продукт Версії
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)