1 <?xml version="1.0" encoding="UTF-8"?>
4 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5 * Copyright (C) XXXX-2008 - INRIA
7 * Copyright (C) 2012 - 2016 - Scilab Enterprises
9 * This file is hereby licensed under the terms of the GNU GPL v2.0,
10 * pursuant to article 5.3.4 of the CeCILL v.2.1.
11 * This file was originally licensed under the terms of the CeCILL v2.1,
12 * and continues to be available under such terms.
13 * For more information, see the COPYING file which you should have received
14 * along with this program.
18 <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="mtlb_sparse">
22 <refname>mtlb_sparse</refname>
24 <refpurpose>疎行列に変換</refpurpose>
32 <synopsis>Y=mtlb_sparse(X)</synopsis>
60 <para>Matlab形式の疎行列</para>
76 <literal>Y=mtlb_sparse(X)</literal> は
78 Scilab疎行列<literal>X</literal>をMatlab形式に変換する際に
82 <literal>Y</literal> は7型の変数,すなわち,
84 <literal>type(Y)</literal>は7となります.
86 この関数は, mexfilesで使用されます (疎行列を含むMatlab mexileはScilab疎行列を
90 関数<literal>full</literal> および <literal>spget</literal>はこの形式でも
102 Scilab関数によりオーバーロードすることができます.
106 <literal>%msp_p(x)</literal> (SCIDIR/macros/percent ディレクトリ参照)は
108 このような"7型"オブジェクトを表示する際に使用されます.
118 <programlisting role="example"><![CDATA[
119 X=sparse(rand(2,2)); Y=mtlb_sparse(X);
120 Y, full(Y), [ij,v,mn]=spget(Y)
125 <refsection role="see also">
129 <simplelist type="inline">
133 <link linkend="full">full</link>
139 <link linkend="spget">spget</link>