Table of Contents

Method YIsAnyTrue

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YIsAnyTrue<T>(Vector128<T>)

Checks if any elements of the vector is true (检查向量中任一元素是不是为true). Mnemonic: rt := value[0] || value[1] || value[2] || ... || value[Count-1]. The element of value must be 0 or AllBitsSet (Signed integer value -1).

public static bool YIsAnyTrue<T>(Vector128<T> value) where T : struct

Parameters

value Vector128<T>

The vector whose elements will be checked. The return value of a comparison category function can be assigned to it (将检查其元素的向量. 可将比较类函数的返回值赋值给它). e.g. Equals<T>(Vector128<T>, Vector128<T>).

Returns

bool

Return true if any elements in value is true. (value 中任一元素为true时返回true).

Type Parameters

T

The vector element type (向量中的元素的类型).

See Also