<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008 - INRIA
+ * Copyright (C) 2015 - 2016 - Samuel GOUGEON
+ * Copyright (C) 2012 - 2016 - Scilab Enterprises
+ *
+ * This file is hereby licensed under the terms of the GNU GPL v2.0,
+ * pursuant to article 5.3.4 of the CeCILL v.2.1.
+ * This file was originally licensed under the terms of the CeCILL v2.1,
+ * and continues to be available under such terms.
+ * For more information, see the COPYING file which you should have received
+ * along with this program.
+ *
+ -->
<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">
<refnamediv>
<refname>sign</refname>
<refpurpose>fonction signe</refpurpose>
</refnamediv>
- <refsection>
+ <refsynopsisdiv>
+ <title>Syntaxe</title>
+ <synopsis>X = sign(A)</synopsis>
+ </refsynopsisdiv>
+ <refsection role="parameters">
+ <title>Paramètres</title>
+ <variablelist>
+ <varlistentry>
+ <term>А</term>
+ <listitem>
+ <para>matrice de nombres réels ou complexes, d'encodage dense ou creux.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>X</term>
+ <listitem>
+ <para>matrice de nombres réels ou complexes.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection role="description">
<title>Description</title>
<para>
- <literal>X=sign(A)</literal> renvoie la matrice contenant les signes
- de termes <literal>A(i,j)</literal>. Pour les matrices complexes,
- <literal>sign(A) = A./abs(A)</literal>.
+ <literal>X = sign(A)</literal> renvoie la matrice contenant les signes
+ de termes <literal>A(i,j)</literal>. Pour les matrices de nombres
+ complexes, <literal>sign(A) = A./abs(A)</literal>.
</para>
</refsection>
- <refsection>
+ <refsection role="examples">
<title>Exemples</title>
- <programlisting role="example"><![CDATA[
+ <programlisting role="example"><![CDATA[
sign(rand(2,3))
sign(1+%i)
+sign(sprand(8,3,0.3,"normal"))
]]></programlisting>
</refsection>
<refsection role="see also">
</member>
</simplelist>
</refsection>
+ <refsection role="history">
+ <title>Historique</title>
+ <revhistory>
+ <revision>
+ <revnumber>6.0</revnumber>
+ <revdescription>Extension aux matrices creuses
+ </revdescription>
+ </revision>
+ </revhistory>
+ </refsection>
</refentry>