1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2008 - INRIA
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
17 xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
19 xmlns:scilab="http://www.scilab.org" xml:id="speye" xml:lang="ja">
21 <refname>speye</refname>
22 <refpurpose>疎単位行列</refpurpose>
28 Isp = speye(nrows, ncols)
63 <literal>Isp=speye(nrows,ncols)</literal> は,
64 <literal>nrows</literal> 行,
65 <literal>ncols</literal> 列の
66 疎単位行列<literal>Isp</literal>を返します.
70 <literal>Isp=speye(A)</literal>は<literal>A</literal>と
72 <literal>[m,n]=size(A)</literal>の場合, <literal>speye(m,n)</literal> および
73 <literal>speye(A)</literal>は等価です.
75 なお, <literal>speye(3)</literal> は <literal>speye(3,3)</literal>と等価ではありません.
81 <programlisting role="example"><![CDATA[
82 eye(3,3) - full(speye(3,3))
85 <refsection role="see also">
87 <simplelist type="inline">
89 <link linkend="sparse">sparse</link>
92 <link linkend="full">full</link>
95 <link linkend="eye">eye</link>
98 <link linkend="diag">diag</link>
101 <link linkend="toeplitz">toeplitz</link>
104 <link linkend="spzeros">spzeros</link>
107 <link linkend="spones">spones</link>