| 1 | |
| 2 | <refentry id="productarray"> |
| 3 | <indexterm id="IndexProductArray"><primary>product</primary></indexterm> |
| 4 | <refentryinfo><title>Array Opcodes</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>product</refentrytitle> |
| 7 | </refmeta> |
| 8 | <refnamediv> |
| 9 | <refname>product</refname> |
| 10 | <refpurpose> |
| 11 | Calculates the product of an array. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | |
| 15 | <refsect1> |
| 16 | <title>Description</title> |
| 17 | <para> |
| 18 | Takes a numeric array (k or i-rate) and calculates its product. |
| 19 | </para> |
| 20 | </refsect1> |
| 21 | |
| 22 | <refsect1> |
| 23 | <title>Syntax</title> |
| 24 | <synopsis>kres/ires <command>product</command> karr[]/iarr[] (k- or i-arrays )</synopsis> |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Examples</title> |
| 29 | <para> |
| 30 | Here is an example of the product opcode. It uses the file <ulink url="examples/productarray.csd"><citetitle>producta.csd</citetitle></ulink>. |
| 31 | <example> |
| 32 | <title>Example of the product opcode.</title> |
| 33 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 34 | <xi:include href="examples-xml/productarray.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 35 | </example> |
| 36 | </para> |
| 37 | </refsect1> |
| 38 | |
| 39 | <refsect1> |
| 40 | <title>See also</title> |
| 41 | <para><link linkend="arrayOpcodes"><citetitle>Array opcodes</citetitle></link></para> |
| 42 | </refsect1> |
| 43 | |
| 44 | <refsect1> |
| 45 | <title>Credits</title> |
| 46 | <para>Author: Victor Lazzarini</para> |
| 47 | <para>New in version 6.09</para> |
| 48 | </refsect1> |
| 49 | </refentry> |