TensorPrimitives.IsImaginaryNumber<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 a imaginary number.
public:
generic <typename T>
where T : System::Numerics::INumberBase<T> static void IsImaginaryNumber(ReadOnlySpan<T> x, Span<bool> destination);
public static void IsImaginaryNumber<T>(ReadOnlySpan<T> x, Span<bool> destination) where T : System.Numerics.INumberBase<T>;
static member IsImaginaryNumber : ReadOnlySpan<'T (requires 'T :> System.Numerics.INumberBase<'T>)> * Span<bool> -> unit (requires 'T :> System.Numerics.INumberBase<'T>)
Public Shared Sub IsImaginaryNumber(Of T As INumberBase(Of T)) (x As ReadOnlySpan(Of T), destination As Span(Of Boolean))
Type Parameters
- T
Parameters
The 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
.IsImaginaryNumber(x
[i])