Share via


Tensor.LessThan Method

Definition

Overloads

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

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

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

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

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

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

LessThan<T>(ReadOnlyTensorSpan<T>, T)

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

LessThan<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

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

LessThan<T>(T, ReadOnlyTensorSpan<T>)

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

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

Source:
TensorExtensions.cs

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

public:
generic <typename T>
 where T : System::Numerics::IComparisonOperators<T, T, bool> static System::Numerics::Tensors::TensorSpan<T> ^ LessThan(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, T y, System::Numerics::Tensors::TensorSpan<bool> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> LessThan<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>;
static member LessThan : ReadOnlyTensorSpan * 'T * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IComparisonOperators<'T, 'T, bool>)
Public Function LessThan(Of T As IComparisonOperators(Of T, T, Boolean)) (ByRef x As ReadOnlyTensorSpan(Of T), y As T, ByRef destination As TensorSpan(Of Boolean)) As TensorSpan(Of Boolean)

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 less than y and false if they are not.

Applies to

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

Source:
TensorExtensions.cs

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

public:
generic <typename T>
 where T : System::Numerics::IComparisonOperators<T, T, bool> static System::Numerics::Tensors::TensorSpan<T> ^ LessThan(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y, System::Numerics::Tensors::TensorSpan<bool> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> LessThan<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>;
static member LessThan : ReadOnlyTensorSpan * ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IComparisonOperators<'T, 'T, bool>)
Public Function LessThan(Of T As IComparisonOperators(Of T, T, Boolean)) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef y As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of Boolean)) As TensorSpan(Of Boolean)

Type Parameters

T

Parameters

destination
TensorSpan<Boolean>

Returns

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

Applies to

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

Source:
TensorExtensions.cs

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

public:
generic <typename T>
 where T : System::Numerics::IComparisonOperators<T, T, bool> static System::Numerics::Tensors::TensorSpan<T> ^ LessThan(T x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y, System::Numerics::Tensors::TensorSpan<bool> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> LessThan<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>;
static member LessThan : 'T * ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IComparisonOperators<'T, 'T, bool>)
Public Function LessThan(Of T As IComparisonOperators(Of T, T, Boolean)) (x As T, ByRef y As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of Boolean)) As TensorSpan(Of Boolean)

Type Parameters

T

Parameters

x
T

Tensor<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 less than y and false if they are not.

Applies to

LessThan<T>(ReadOnlyTensorSpan<T>, T)

Source:
TensorExtensions.cs

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

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

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 less than y and false if they are not.

Applies to

LessThan<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs

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

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

Type Parameters

T

Parameters

Returns

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

Applies to

LessThan<T>(T, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs

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

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

Type Parameters

T

Parameters

x
T

Tensor<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 less than y and false if they are not.

Applies to