1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>any
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>any
</refname>
17 <refpurpose>check whether any element of a boolean vector is true
</refpurpose>
19 <refsynopsisdiv><title>Declaration
</title>
22 <funcdef>bool
<function>any
</function></funcdef>
23 <paramdef>bvec
<parameter>x
</parameter></paramdef>
27 <refsect1 id=
"parameters"><title>Parameters
</title>
30 <term><parameter>x
</parameter></term>
33 Specifies the vector to be tested for truth.
39 <refsect1 id=
"description"><title>Description
</title>
41 <function>any
</function> returns true if any element of
<parameter>x
</parameter> is true and false otherwise.
42 It is functionally equivalent to:
45 <programlisting><![CDATA[ bool any(bvec x) // bvec can be bvec2, bvec3 or bvec4
49 for (i =
0; i < x.length(); ++x)
57 <refsect1 id=
"versions"><title>Version Support
</title>
58 <informaltable frame=
"topbot">
63 <entry>any
</entry>#newin11#
69 <refsect1 id=
"seealso"><title>See Also
</title>
71 <citerefentry><refentrytitle>all
</refentrytitle></citerefentry>,
72 <citerefentry><refentrytitle>not
</refentrytitle></citerefentry>
75 <refsect1 id=
"Copyright"><title>Copyright
</title>
77 Copyright
<trademark class=
"copyright"></trademark> 2011 Khronos Group.
78 This material may be distributed subject to the terms and conditions set forth in
79 the Open Publication License, v
1.0,
8 June
1999.
80 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.