vec_all_gt

用途

检验第一个自变量的所有元素是否都大于第二个自变量的相应元素。

语法

d=vec_all_gt(a, b)

结果和参数类型

下表描述了返回值和函数参数的类型。

表 1. 结果和参数类型
d a b
int vector bool char vector bool char
vector signed char
vector unsigned char
vector signed char vector bool char
vector signed char
vector unsigned char vector bool char
vector unsigned char
vector bool short vector bool short
vector signed short
vector unsigned short
vector signed short vector bool short
vector signed short
vector unsigned short vector bool short
vector unsigned short
vector bool int vector bool int
vector signed int
vector unsigned int
vector signed int vector bool int
vector signed int
vector unsigned int vector bool int
vector unsigned int
vector bool long long vector bool long long
vector signed long long
vector unsigned long long
vector signed long long vector bool long long
vector signed long long
vector unsigned long long vector bool long long
vector unsigned long long
vector float vector float
向量双精度 向量双精度

结果值

如果 a 的所有元素都大于 b的相应元素,那么结果为 1。 否则,结果为 0。