Delen via


Tensor.LessThanAny Method

Definition

Overloads

LessThanAny<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.

LessThanAny<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.

LessThanAny<T>(ReadOnlyTensorSpan<T>, T)

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

LessThanAny<T>(T, ReadOnlyTensorSpan<T>)

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.

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

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

LessThanAny<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

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.

public:
generic <typename T>
 where T : System::Numerics::IComparisonOperators<T, T, bool> static bool LessThanAny(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y);
public static bool LessThanAny<T> (in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T,T,bool>;
static member LessThanAny : ReadOnlyTensorSpan * ReadOnlyTensorSpan -> bool (requires 'T :> System.Numerics.IComparisonOperators<'T, 'T, bool>)
Public Function LessThanAny(Of T As IComparisonOperators(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 any elements in x are less than y.

Applies to

LessThanAny<T>(ReadOnlyTensorSpan<T>, T)

Source:
TensorExtensions.cs

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

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

Type Parameters

T

Parameters

x
T

Second value to compare against.

Returns

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

Applies to