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
5 * Copyright (C) 2015 - 2016 - Samuel GOUGEON
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" 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="sign" xml:lang="fr">
18 <refname>sign</refname>
19 <refpurpose>fonction signe</refpurpose>
22 <title>Syntaxe</title>
23 <synopsis>X = sign(A)</synopsis>
25 <refsection role="parameters">
26 <title>Paramètres</title>
31 <para>matrice de nombres réels ou complexes, d'encodage dense ou creux.</para>
37 <para>matrice de nombres réels ou complexes.</para>
42 <refsection role="description">
43 <title>Description</title>
45 <literal>X = sign(A)</literal> renvoie la matrice contenant les signes
46 de termes <literal>A(i,j)</literal>. Pour les matrices de nombres
47 complexes, <literal>sign(A) = A./abs(A)</literal>.
50 <refsection role="examples">
51 <title>Exemples</title>
52 <programlisting role="example"><![CDATA[
55 sign(sprand(8,3,0.3,"normal"))
58 <refsection role="see also">
59 <title>Voir aussi</title>
60 <simplelist type="inline">
62 <link linkend="abs">abs</link>
66 <refsection role="history">
67 <title>Historique</title>
70 <revnumber>6.0</revnumber>
71 <revdescription>Extension aux matrices creuses