5766315923e55810076d31436f3c3b15b7f0faf6
[scilab.git] / scilab / modules / sparse / help / ja_JP / matrixmanip / nnz.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) XXXX-2008 - INRIA
5  * 
6  * This file must be used under the terms of the CeCILL.
7  * This source file is licensed as described in the file COPYING, which
8  * you should have received as part of this distribution.  The terms
9  * are also available at    
10  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
11  *
12  -->
13 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="nnz">
14     <refnamediv>
15         <refname>nnz</refname>
16         <refpurpose>行列における非ゼロ要素の数</refpurpose>
17     </refnamediv>
18     <refsynopsisdiv>
19         <title>呼び出し手順</title>
20         <synopsis>n=nnz(X)</synopsis>
21     </refsynopsisdiv>
22     <refsection>
23         <title>パラメータ</title>
24         <variablelist>
25             <varlistentry>
26                 <term>X</term>
27                 <listitem>
28                     <para>実数または複素疎(または通常)行列</para>
29                 </listitem>
30             </varlistentry>
31             <varlistentry>
32                 <term>n</term>
33                 <listitem>
34                     <para>整数, Xの非ゼロ要素の数</para>
35                 </listitem>
36             </varlistentry>
37         </variablelist>
38     </refsection>
39     <refsection>
40         <title>説明</title>
41         <para>
42             <literal>nnz</literal> は疎行列または通常の行列における
43             非ゼロ要素の数を数えます.
44         </para>
45     </refsection>
46     <refsection>
47         <title>例</title>
48         <programlisting role="example"><![CDATA[ 
49 sp=sparse([1,2;4,5;3,10],[1,2,3]);
50 nnz(sp)
51 a=[1 0 0 0 2];
52 nnz(a)
53  ]]></programlisting>
54     </refsection>
55     <refsection role="see also">
56         <title>参照</title>
57         <simplelist type="inline">
58             <member>
59                 <link linkend="spget">spget</link>
60             </member>
61         </simplelist>
62     </refsection>
63 </refentry>