1 <?xml version="1.0" encoding="UTF-8"?>
2 <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="speye" xml:lang="fr">
4 <refname>speye</refname>
5 <refpurpose>matrice identité creuse</refpurpose>
8 <title>Séquence d'appel</title>
9 <synopsis>Isp=speye(nrows,ncols)
14 <title>Paramètres</title>
19 <para>entier (nombre de lignes)</para>
25 <para>entier (nombre de colonnes)</para>
31 <para>matrice creuse</para>
37 <para>matrice identité creuse</para>
43 <title>Description</title>
45 <literal>Isp=speye(nrows,ncols)</literal> renvoie une matrice
46 identité creuse <literal>Isp</literal> avec <literal>nrows</literal>
47 lignes et <literal>ncols</literal> colonnes.
50 <literal>Isp=speye(A)</literal> renvoie une matrice identité creuse
51 de même taille que <literal>A</literal>. Si
52 <literal>[m,n]=size(A)</literal>, les commandes
53 <literal>speye(m,n)</literal> et <literal>speye(A)</literal> sont
54 équivalentes. En particulier <literal>speye(3)</literal> n'est pas
55 équivalent à <literal>speye(3,3)</literal>.
59 <title>Exemples</title>
60 <programlisting role="example"><![CDATA[
61 eye(3,3)-full(speye(3,3))
64 <refsection role="see also">
65 <title>Voir aussi</title>
66 <simplelist type="inline">
68 <link linkend="sparse">sparse</link>
71 <link linkend="full">full</link>
74 <link linkend="eye">eye</link>
77 <link linkend="spzeros">spzeros</link>
80 <link linkend="spones">spones</link>