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