Method YIsAllTrue
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YIsAllTrue<T>(Vector256<T>)
Checks if all 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 YIsAllTrue<T>(Vector256<T> value) where T : struct
Parameters
value
Vector256<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
true
if all elements invalue
is true. (value
中所有元素为true时返回true
).
Type Parameters
T
The vector element type (向量中的元素的类型).
- See Also