ca68288619267735c6f071cfff435e07e748cef1
[scilab.git] / scilab / modules / sparse / help / ja_JP / sparseconvert / sp2adj.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) 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:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="sp2adj" xml:lang="ja">
14     <refnamediv>
15         <refname>sp2adj</refname>
16         <refpurpose>疎行列を隣接形式に変換する</refpurpose>
17     </refnamediv>
18     <refsection>
19         <title>パラメータ</title>
20         <variablelist>
21             <varlistentry>
22                 <term>A</term>
23                 <listitem>
24                     <para>実数または複素数の疎行列 (nz 個の非ゼロエントリ)</para>
25                 </listitem>
26             </varlistentry>
27             <varlistentry>
28                 <term>xadj</term>
29                 <listitem>
30                     <para>長さ(n+1)の整数ベクトル.</para>
31                 </listitem>
32             </varlistentry>
33             <varlistentry>
34                 <term>adjncy</term>
35                 <listitem>
36                     <para>
37                         anzの要素に関するの行インデックスを含む長さnzの整数ベクトル
38                     </para>
39                 </listitem>
40             </varlistentry>
41             <varlistentry>
42                 <term>anz</term>
43                 <listitem>
44                     <para>
45                         Aの非ゼロ要素を有する長さnzの列ベクトル
46                     </para>
47                 </listitem>
48             </varlistentry>
49         </variablelist>
50     </refsection>
51     <refsection>
52         <title>説明</title>
53         <programlisting role=""><![CDATA[ 
54 sp2adj は疎行列を隣接形式に変換します (ユーティリティ関数).
55 A =  n x m 疎行列. xadj, adjncy, anz = Aの隣接表現,すなわち:
56  ]]></programlisting>
57         <para>
58             <literal>xadj(j+1)-xadj(j)</literal> = j行目における非ゼロ要素の数.
59             <literal>adjncy</literal> = 行1,行2,...,行nにおける
60             エントリの非ゼロの列インデックス.
61             <literal>anz</literal> = 行1,行2,...,行nにおける非ゼロ要素の値.
62             <literal>xadj</literal> は大きさ n+1の (列)ベクトル,
63             <literal>adjncy</literal> は大きさ<literal>nz=nnz(A)</literal>の
64             整数(列)ベクトルです.
65             <literal>anz</literal> は大きさ<literal>nz=nnz(A)</literal>の
66             実数ベクトルです.
67         </para>
68     </refsection>
69     <refsection>
70         <title>例</title>
71         <programlisting role="example"><![CDATA[ 
72 A = sprand(100,50,.05);
73 [xadj,adjncy,anz]= sp2adj(A);
74 [n,m]=size(A);
75 p = adj2sp(xadj,adjncy,anz,[n,m]);
76 A-p
77  ]]></programlisting>
78     </refsection>
79     <refsection role="see also">
80         <title>参照</title>
81         <simplelist type="inline">
82             <member>
83                 <link linkend="adj2sp">adj2sp</link>
84             </member>
85             <member>
86                 <link linkend="sparse">sparse</link>
87             </member>
88             <member>
89                 <link linkend="spcompack">spcompack</link>
90             </member>
91             <member>
92                 <link linkend="spget">spget</link>
93             </member>
94         </simplelist>
95     </refsection>
96 </refentry>