Redigera

Dela via


Vector64.IsOddInteger<T>(Vector64<T>) Method

Definition

Determines which elements in a vector are odd integral values.

public:
generic <typename T>
 static System::Runtime::Intrinsics::Vector64<T> IsOddInteger(System::Runtime::Intrinsics::Vector64<T> vector);
public static System.Runtime.Intrinsics.Vector64<T> IsOddInteger<T>(System.Runtime.Intrinsics.Vector64<T> vector);
static member IsOddInteger : System.Runtime.Intrinsics.Vector64<'T> -> System.Runtime.Intrinsics.Vector64<'T>
Public Function IsOddInteger(Of T) (vector As Vector64(Of T)) As Vector64(Of T)

Type Parameters

T

The type of the elements in the vector.

Parameters

vector
Vector64<T>

The vector to be checked.

Returns

A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in vector were odd integral values.

Remarks

This correctly handles floating-point values and so 3.0 will return all-bits-set for a corresponding element while 3.3 will return zero.

This function returning zero for a corresponding element does not imply that IsEvenInteger will return all-bits-set for that element. A number with a fractional portion, 3.3, is neither even nor odd.

Applies to