help pages: toeplitz overhauled. diag, sparse, speye improved
[scilab.git] / scilab / modules / sparse / help / pt_BR / matrixmanip / nnz.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) XXXX-2008 - INRIA
5  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
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.
14  *
15  -->
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="nnz" xml:lang="pt">
17     <refnamediv>
18         <refname>nnz</refname>
19         <refpurpose>número de entradas não-nulas de uma matriz</refpurpose>
20     </refnamediv>
21     <refsynopsisdiv>
22         <title>Seqüência de Chamamento</title>
23         <synopsis>n=nnz(X)</synopsis>
24     </refsynopsisdiv>
25     <refsection>
26         <title>Parâmetros</title>
27         <variablelist>
28             <varlistentry>
29                 <term>X</term>
30                 <listitem>
31                     <para>matriz de reais ou complexos esparsa (ou cheia) </para>
32                 </listitem>
33             </varlistentry>
34             <varlistentry>
35                 <term>n</term>
36                 <listitem>
37                     <para>inteiro, número de elementos não-nulos de X. </para>
38                 </listitem>
39             </varlistentry>
40         </variablelist>
41     </refsection>
42     <refsection>
43         <title>Descrição</title>
44         <para>
45             <literal>nnz</literal> conta o número de entradas não-nulas de uma
46             matriz esparsa ou cheia.
47         </para>
48     </refsection>
49     <refsection>
50         <title>Exemplos</title>
51         <programlisting role="example"><![CDATA[
52 sp=sparse([1,2;4,5;3,10],[1,2,3]);
53 nnz(sp)
54 a=[1 0 0 0 2];
55 nnz(a)
56  ]]></programlisting>
57     </refsection>
58     <refsection>
59         <title>Ver Também</title>
60         <simplelist type="inline">
61             <member>
62                 <link linkend="spget">spget</link>
63             </member>
64         </simplelist>
65     </refsection>
66 </refentry>