Share via


Tensor.LessThanAll Method

Definition

Overloads

LessThanAll<T>(ReadOnlyTensorSpan<T>, T)

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

LessThanAll<T>(T, ReadOnlyTensorSpan<T>)

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

LessThanAll<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

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

LessThanAll<T>(ReadOnlyTensorSpan<T>, T)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

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

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

Type Parameters

T

Parameters

y
T

Second value to compare against.

Returns

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

Applies to

LessThanAll<T>(T, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

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

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

Second value to compare against.

y
ReadOnlyTensorSpan<T>

First value to compare.

Returns

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

Applies to

LessThanAll<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

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

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

Applies to