Debian Codegraph @

opcodes/lenarray.xml

raw symbols SCIP
1
2 <refentry id="lenarray">
3 <indexterm id="IndexLenarray"><primary>lenarray</primary></indexterm>
4
5 <refentryinfo><title>Table Control:Table Queries</title></refentryinfo>
6 <refmeta>
7 <refentrytitle>lenarray</refentrytitle>
8 </refmeta>
9
10 <refnamediv>
11 <refname>lenarray</refname>
12 <refpurpose>
13 Evaluates the size or shape length of an array.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 Evaluates the size or number of dimensions of an array.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>ir <command>lenarray</command> karray[, iwhich]</synopsis>
27 <synopsis>kr <command>lenarray</command> karray[, iwhich]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialisation</title>
32 <para>
33 <emphasis>karray</emphasis> -- The array that is being
34 questioned. It can be of any dimension.
35 </para>
36 <para>
37 <emphasis>iwhich</emphasis> -- selects which dimension to
38 evaluate the size. If zero or negative it selects the number of
39 dimensions. It defaults to 1, as used in a vector.
40 </para>
41 </refsect1>
42
43 <refsect1>
44 <title>Performance</title>
45 <para>
46 <emphasis>kr</emphasis> -- length of vector.
47 </para>
48 <para>
49 <emphasis>karray</emphasis> -- array to query.
50 </para>
51 <para>
52 If the dimension requested is larger than the actual array, or
53 the array is not initialised the value -1 is returned.
54 </para>
55 </refsect1>
56
57 <refsect1>
58 <title>Examples</title>
59 <para>
60 Here is an example of the lenarray opcode. It uses the file <ulink url="examples/lenarray.csd"><citetitle>lenarray.csd</citetitle></ulink>.
61 <example>
62 <title>Example of the lenarray opcode.</title>
63 <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>
64 <xi:include href="examples-xml/lenarray.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
65 </example>
66 </para>
67 </refsect1>
68
69 <refsect1>
70 <title>See also</title>
71 <para><link linkend="arrayOpcodes"><citetitle>Array opcodes</citetitle></link></para>
72 </refsect1>
73
74 <refsect1>
75 <title>Credits</title>
76 <para>
77 <simplelist>
78 <member>Author: &namejohn;</member>
79 <member>Codemist Ltd</member>
80 <member>2013</member>
81 </simplelist>
82 </para>
83 <para>New in version 6.00</para>
84 <para>Extended to multi-dimensions in 6.04</para>
85 </refsect1>
86 </refentry>