vec_any_out

Purpose

Tests whether the value of any element of a given vector is outside of a given range.

Syntax

d=vec_any_out(a, b)

Result and argument types

The following table describes the types of the returned value and the function arguments.

Table 1. Types of the returned value and the function arguments
d a b
int vector float vector float

Result value

The result is 1 if both of the following conditions are satisfied; otherwise, the result is 0.
  • All the elements of b have a value greater than or equal to 0.
  • The absolute value of any element of a is greater than the value of the corresponding element of b or less than the negative of the value of the corresponding element of b.