Details
-
Sub-task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1.0
-
None
Description
The ?: operator as following could not be vectorized in loop, we may transfer it into mathematical expression.
for(int j = 0; j != n; j++) { int i = sel[j]; outputVector[i] = (vector1[i] == 1 ? vector2[i] : vector3[i]); outputIsNull[i] = (vector1[i] == 1 ? arg2ColVector.isNull[i] : arg3ColVector.isNull[i]); }