Прочитать на английском

Поделиться через


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.

C#
public static bool IsCanonicalAll<T>(ReadOnlySpan<T> x) where T : System.Numerics.INumberBase<T>;

Type Parameters

T

Parameters

x
ReadOnlySpan<T>

The tensor, represented as a span.

Returns

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)