Vector.IsPositive<T>(Vector<T>) Method

Definition

Determines which elements in a vector represents positive real numbers.

C#
public static System.Numerics.Vector<T> IsPositive<T>(System.Numerics.Vector<T> vector);

Type Parameters

T

Parameters

vector
Vector<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 positive.

Applies to

Product Versions
.NET 9, 10