Method YIsAnyTrue
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YIsAnyTrue<T>(Vector256<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).
bool YIsAnyTrue<T>(Vector256<T> value) where T : struct
Parameters
valueVector256<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>(Vector256<T>, Vector256<T>).
Returns
- bool
Return
trueif any elements invalueis true. (value中任一元素为true时返回true).
Type Parameters
TThe vector element type (向量中的元素的类型).
- See Also