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

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


Tensor.GreaterThanOrEqual Method

Definition

Overloads

GreaterThanOrEqual<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Compares the elements of two ReadOnlyTensorSpan<T> to see which elements of x are greater than or 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 Tensor<T> where the value is true if the elements in x are greater than y and false if they are not."/>

GreaterThanOrEqual<T>(ReadOnlyTensorSpan<T>, T)

Compares the elements of a ReadOnlyTensorSpan<T> to see which elements are greater than or equal to y. It returns a Tensor<T> where the value is true if the elements in x are greater than y and false if they are not."/>

GreaterThanOrEqual<T>(T, ReadOnlyTensorSpan<T>)

Compares x to see which elements are greater than or equal to y. It returns a Tensor<T> where the value is true if the elements in x are greater than y and false if they are not."/>

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

Compares the elements of two ReadOnlyTensorSpan<T> to see which elements of x are greater than or 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 Tensor<T> where the value is true if the elements in x are greater than y and false if they are not."/>

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

Compares the elements of a ReadOnlyTensorSpan<T> to see which elements are greater than or equal to y. It returns a Tensor<T> where the value is true if the elements in x are greater than y and false if they are not."/>

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

Compares x to see which elements are greater than or equal to y. It returns a Tensor<T> where the value is true if the elements in x are greater than y and false if they are not."/>

GreaterThanOrEqual<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Compares the elements of two ReadOnlyTensorSpan<T> to see which elements of x are greater than or 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 Tensor<T> where the value is true if the elements in x are greater than y and false if they are not."/>

C#
public static System.Numerics.Tensors.Tensor<bool> GreaterThanOrEqual<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

Returns

A Tensor<T> where the value is true if the elements in x are greater than y and false if they are not.

Applies to

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

GreaterThanOrEqual<T>(ReadOnlyTensorSpan<T>, T)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Compares the elements of a ReadOnlyTensorSpan<T> to see which elements are greater than or equal to y. It returns a Tensor<T> where the value is true if the elements in x are greater than y and false if they are not."/>

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

Type Parameters

T

Parameters

y
T

T to compare against x.

Returns

Tensor<T> where the value is true if the elements in x are greater than y and false if they are not.

Applies to

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

GreaterThanOrEqual<T>(T, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Compares x to see which elements are greater than or equal to y. It returns a Tensor<T> where the value is true if the elements in x are greater than y and false if they are not."/>

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

Type Parameters

T

Parameters

x
T

ReadOnlyTensorSpan<T> to compare.

y
ReadOnlyTensorSpan<T>

T to compare against x.

Returns

Tensor<T> where the value is true if the elements in x are greater than y and false if they are not.

Applies to

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

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

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Compares the elements of two ReadOnlyTensorSpan<T> to see which elements of x are greater than or 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 Tensor<T> where the value is true if the elements in x are greater than y and false if they are not."/>

C#
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> GreaterThanOrEqual<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.IComparisonOperators<T,T,bool>;

Type Parameters

T

Parameters

destination
TensorSpan<Boolean>

Returns

A Tensor<T> where the value is true if the elements in x are greater than y and false if they are not.

Applies to

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

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

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Compares the elements of a ReadOnlyTensorSpan<T> to see which elements are greater than or equal to y. It returns a Tensor<T> where the value is true if the elements in x are greater than y and false if they are not."/>

C#
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> GreaterThanOrEqual<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T,T,bool>;

Type Parameters

T

Parameters

y
T

T to compare against x.

destination
TensorSpan<Boolean>

Returns

Tensor<T> where the value is true if the elements in x are greater than y and false if they are not.

Applies to

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

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

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Compares x to see which elements are greater than or equal to y. It returns a Tensor<T> where the value is true if the elements in x are greater than y and false if they are not."/>

C#
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> GreaterThanOrEqual<T>(T x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T,T,bool>;

Type Parameters

T

Parameters

x
T

ReadOnlyTensorSpan<T> to compare.

y
ReadOnlyTensorSpan<T>

T to compare against x.

destination
TensorSpan<Boolean>

Returns

Tensor<T> where the value is true if the elements in x are greater than y and false if they are not.

Applies to

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