* Bug #13839 fixed - sign() could not be used with sparse matrices
[scilab.git] / scilab / modules / elementary_functions / help / ru_RU / sign.xml
index 90bc95f..ea02cc1 100644 (file)
@@ -2,7 +2,7 @@
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) 2008 - INRIA
- * 
+ *
  * Copyright (C) 2012 - 2016 - Scilab Enterprises
  *
  * This file is hereby licensed under the terms of the GNU GPL v2.0,
     </refnamediv>
     <refsynopsisdiv>
         <title>Последовательность вызова</title>
-        <synopsis>X=sign(A)</synopsis>
+        <synopsis>X = sign(A)</synopsis>
     </refsynopsisdiv>
-    <refsection>
+    <refsection role="parameters">
         <title>Аргументы</title>
         <variablelist>
             <varlistentry>
                 <term>А</term>
                 <listitem>
-                    <para>вещественная или комплексная матрица</para>
+                    <para>вещественная или комплексная матрица. <varname>A</varname> may be sparse.</para>
                 </listitem>
             </varlistentry>
             <varlistentry>
             </varlistentry>
         </variablelist>
     </refsection>
-    <refsection>
+    <refsection role="description">
         <title>Описание</title>
         <para>
-            <literal>X=sign(A)</literal> возвращает матрицу, созданную из знаков 
+            <literal>X = sign(A)</literal> возвращает матрицу, созданную из знаков
             <literal>A(i,j)</literal>. Для комплексной  <literal>A</literal>
             <literal>sign(A) = A./abs(A)</literal>.
         </para>
     </refsection>
-    <refsection>
+    <refsection role="examples">
         <title>Примеры</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">
@@ -68,4 +69,14 @@ sign(1+%i)
             </member>
         </simplelist>
     </refsection>
+    <refsection role="history">
+        <title>История</title>
+        <revhistory>
+            <revision>
+                <revnumber>6.0</revnumber>
+                <revdescription>Extension to sparse matrices
+                </revdescription>
+            </revision>
+        </revhistory>
+    </refsection>
 </refentry>