Tensor.LessThanOrEqual Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>) |
Compares the elements of two ReadOnlyTensorSpan<T> to see which elements of |
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, T) |
Compares the elements of a Tensor<T> to see which elements are less than |
LessThanOrEqual<T>(T, ReadOnlyTensorSpan<T>) |
Compares the elements of a Tensor<T> to see which elements are less than |
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<Boolean>) |
Compares the elements of two ReadOnlyTensorSpan<T> to see which elements of |
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, T, TensorSpan<Boolean>) |
Compares the elements of a Tensor<T> to see which elements are less than |
LessThanOrEqual<T>(T, ReadOnlyTensorSpan<T>, TensorSpan<Boolean>) |
Compares the elements of a Tensor<T> to see which elements are less than |
LessThanOrEqual<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> ^ LessThanOrEqual(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y);
public static System.Numerics.Tensors.Tensor<bool> LessThanOrEqual<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 LessThanOrEqual : ReadOnlyTensorSpan * ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<bool> (requires 'T :> System.Numerics.IComparisonOperators<'T, 'T, bool>)
Public Function LessThanOrEqual(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
First ReadOnlyTensorSpan<T> to compare.
Second ReadOnlyTensorSpan<T> to compare.
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
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, T)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
where T : System::Numerics::IComparisonOperators<T, T, bool> static System::Numerics::Tensors::Tensor<bool> ^ LessThanOrEqual(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, T y);
public static System.Numerics.Tensors.Tensor<bool> LessThanOrEqual<T> (in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IComparisonOperators<T,T,bool>;
static member LessThanOrEqual : ReadOnlyTensorSpan * 'T -> System.Numerics.Tensors.Tensor<bool> (requires 'T :> System.Numerics.IComparisonOperators<'T, 'T, bool>)
Public Function LessThanOrEqual(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
Tensor<T> to compare.
- 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
LessThanOrEqual<T>(T, ReadOnlyTensorSpan<T>)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
where T : System::Numerics::IComparisonOperators<T, T, bool> static System::Numerics::Tensors::Tensor<bool> ^ LessThanOrEqual(T x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y);
public static System.Numerics.Tensors.Tensor<bool> LessThanOrEqual<T> (T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T,T,bool>;
static member LessThanOrEqual : 'T * ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<bool> (requires 'T :> System.Numerics.IComparisonOperators<'T, 'T, bool>)
Public Function LessThanOrEqual(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.
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
LessThanOrEqual<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> ^ LessThanOrEqual(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> LessThanOrEqual<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 LessThanOrEqual : ReadOnlyTensorSpan * ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IComparisonOperators<'T, 'T, bool>)
Public Function LessThanOrEqual(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
First ReadOnlyTensorSpan<T> to compare.
Second ReadOnlyTensorSpan<T> to compare.
- 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
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, T, TensorSpan<Boolean>)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
where T : System::Numerics::IComparisonOperators<T, T, bool> static System::Numerics::Tensors::TensorSpan<T> ^ LessThanOrEqual(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, T y, System::Numerics::Tensors::TensorSpan<bool> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> LessThanOrEqual<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 LessThanOrEqual : ReadOnlyTensorSpan * 'T * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IComparisonOperators<'T, 'T, bool>)
Public Function LessThanOrEqual(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
Tensor<T> to compare.
- 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
LessThanOrEqual<T>(T, ReadOnlyTensorSpan<T>, TensorSpan<Boolean>)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
where T : System::Numerics::IComparisonOperators<T, T, bool> static System::Numerics::Tensors::TensorSpan<T> ^ LessThanOrEqual(T x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y, System::Numerics::Tensors::TensorSpan<bool> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> LessThanOrEqual<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 LessThanOrEqual : 'T * ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IComparisonOperators<'T, 'T, bool>)
Public Function LessThanOrEqual(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.
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.