Tensor.LessThanOrEqual 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>) |
比较两个 ReadOnlyTensorSpan<T> 的元素,以查看 |
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, T) |
比较 Tensor<T> 的元素以查看哪些元素小于 |
LessThanOrEqual<T>(T, ReadOnlyTensorSpan<T>) |
比较 Tensor<T> 的元素以查看哪些元素小于 |
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<Boolean>) |
比较两个 ReadOnlyTensorSpan<T> 的元素,以查看 |
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, T, TensorSpan<Boolean>) |
比较 Tensor<T> 的元素以查看哪些元素小于 |
LessThanOrEqual<T>(T, ReadOnlyTensorSpan<T>, TensorSpan<Boolean>) |
比较 Tensor<T> 的元素以查看哪些元素小于 |
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)
- Source:
- TensorExtensions.cs
- Source:
- TensorExtensions.cs
比较两个 ReadOnlyTensorSpan<T> 的元素,以查看 x
的元素小于 y
。
如果形状不相同,则张量在进行比较之前将广播到最小可广播大小。
它返回一个 Tensor<T>,如果 x
中的元素小于 y
,则值为 true;否则返回 false。/>
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)
类型参数
- T
参数
首先 ReadOnlyTensorSpan<T> 进行比较。
要比较的第二个 ReadOnlyTensorSpan<T>。
返回
一个 Tensor<T>,如果 x
中的元素小于 y
,则值为 true;否则为 false。
适用于
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, T)
- Source:
- TensorExtensions.cs
- 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)
类型参数
- T
参数
要比较的 Tensor<T>。
- y
- T
要与 x
进行比较的 T
。
返回
如果 x
中的元素小于 y
,则 Tensor<T> 值为 true;否则为 false。
适用于
LessThanOrEqual<T>(T, ReadOnlyTensorSpan<T>)
- Source:
- TensorExtensions.cs
- 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)
类型参数
- T
参数
- x
- T
要比较的 Tensor<T>。
要与 x
进行比较的 T
。
返回
如果 x
中的元素小于 y
,则 Tensor<T> 值为 true;否则为 false。
适用于
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<Boolean>)
- Source:
- TensorExtensions.cs
- Source:
- TensorExtensions.cs
比较两个 ReadOnlyTensorSpan<T> 的元素,以查看 x
的元素小于 y
。
如果形状不相同,则张量在进行比较之前将广播到最小可广播大小。
它返回一个 Tensor<T>,如果 x
中的元素小于 y
,则值为 true;否则返回 false。/>
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)
类型参数
- T
参数
首先 ReadOnlyTensorSpan<T> 进行比较。
要比较的第二个 ReadOnlyTensorSpan<T>。
- destination
- TensorSpan<Boolean>
返回
一个 Tensor<T>,如果 x
中的元素小于 y
,则值为 true;否则为 false。
适用于
LessThanOrEqual<T>(ReadOnlyTensorSpan<T>, T, TensorSpan<Boolean>)
- Source:
- TensorExtensions.cs
- 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)
类型参数
- T
参数
要比较的 Tensor<T>。
- y
- T
要与 x
进行比较的 T
。
- destination
- TensorSpan<Boolean>
返回
如果 x
中的元素小于 y
,则 Tensor<T> 值为 true;否则为 false。
适用于
LessThanOrEqual<T>(T, ReadOnlyTensorSpan<T>, TensorSpan<Boolean>)
- Source:
- TensorExtensions.cs
- 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)
类型参数
- T
参数
- x
- T
要比较的 Tensor<T>。
要与 x
进行比较的 T
。
- destination
- TensorSpan<Boolean>
返回
如果 x
中的元素小于 y
,则 Tensor<T> 值为 true;否则为 false。