Tensor.LessThanAll 方法

定义

重载

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

比较两个 ReadOnlyTensorSpan<T> 的元素,以查看 f 的所有元素是否小于 x。 如果形状不相同,则张量在进行比较之前将广播到最小可广播大小。 如果 f 中的所有元素小于 x,则返回值为 true 的 Boolean

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

比较两个 ReadOnlyTensorSpan<T> 的元素,以查看 y 的所有元素是否小于 x。 如果形状不相同,则张量在进行比较之前将广播到最小可广播大小。 如果 y 中的所有元素小于 x,则返回值为 true 的 Boolean

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

比较两个 ReadOnlyTensorSpan<T> 的元素,以查看 x 的所有元素是否小于 y。 如果形状不相同,则张量在进行比较之前将广播到最小可广播大小。 如果 x 中的所有元素小于 y,则返回值为 true 的 Boolean

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

Source:
TensorExtensions.cs

比较两个 ReadOnlyTensorSpan<T> 的元素,以查看 f 的所有元素是否小于 x。 如果形状不相同,则张量在进行比较之前将广播到最小可广播大小。 如果 f 中的所有元素小于 x,则返回值为 true 的 Boolean

public:
generic <typename T>
 where T : System::Numerics::IComparisonOperators<T, T, bool> static bool LessThanAll(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % f, T x);
public static bool LessThanAll<T> (in System.Numerics.Tensors.ReadOnlyTensorSpan<T> f, T x) 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 f As ReadOnlyTensorSpan(Of T), x As T) As Boolean

类型参数

T

参数

f
ReadOnlyTensorSpan<T>

首先 ReadOnlyTensorSpan<T> 进行比较。

x
T

要与之进行比较的第二个值。

返回

如果 f 中的所有元素都小于 x,则 Boolean 值为 true。

适用于

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

Source:
TensorExtensions.cs

比较两个 ReadOnlyTensorSpan<T> 的元素,以查看 y 的所有元素是否小于 x。 如果形状不相同,则张量在进行比较之前将广播到最小可广播大小。 如果 y 中的所有元素小于 x,则返回值为 true 的 Boolean

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

类型参数

T

参数

x
T

要与之进行比较的第二个值。

y
ReadOnlyTensorSpan<T>

要比较的第一个值。

返回

如果 y 中的所有元素都小于 x,则 Boolean 值为 true。

适用于

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

Source:
TensorExtensions.cs

比较两个 ReadOnlyTensorSpan<T> 的元素,以查看 x 的所有元素是否小于 y。 如果形状不相同,则张量在进行比较之前将广播到最小可广播大小。 如果 x 中的所有元素小于 y,则返回值为 true 的 Boolean

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

类型参数

T

参数

x
ReadOnlyTensorSpan<T>

首先 ReadOnlyTensorSpan<T> 进行比较。

y
ReadOnlyTensorSpan<T>

要与之进行比较的第二个 ReadOnlyTensorSpan<T>

返回

如果 x 中的所有元素都小于 y,则 Boolean 值为 true。

适用于