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

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


TensorPrimitives.IsInteger<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 for each value in the specified tensor whether it's an integer.

C#
public static void IsInteger<T>(ReadOnlySpan<T> x, Span<bool> destination) where T : System.Numerics.INumberBase<T>;

Type Parameters

T

Parameters

x
ReadOnlySpan<T>

The tensor, represented as a span.

destination
Span<Boolean>

The destination tensor, represented as a span.

Exceptions

x and destination reference overlapping memory locations and do not begin at the same location.

Remarks

This method effectively computes destination[i] = T.IsInteger(x[i]).

Applies to

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)