TensorPrimitives.IsCanonicalAll<T>(ReadOnlySpan<T>) 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.
Computes whether all of the values in the specified tensor are in their canonical representations.
public:
generic <typename T>
where T : System::Numerics::INumberBase<T> static bool IsCanonicalAll(ReadOnlySpan<T> x);
public static bool IsCanonicalAll<T>(ReadOnlySpan<T> x) where T : System.Numerics.INumberBase<T>;
static member IsCanonicalAll : ReadOnlySpan<'T (requires 'T :> System.Numerics.INumberBase<'T>)> -> bool (requires 'T :> System.Numerics.INumberBase<'T>)
Public Shared Function IsCanonicalAll(Of T As INumberBase(Of T)) (x As ReadOnlySpan(Of T)) As Boolean
- T
The tensor, represented as a span.
true
if all of the values in x
are in their canonical representations; otherwise, false
.
If x
is empty, false
is returned.
Applies to
Продукт | Версии |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |