~ubuntu-branches/ubuntu/lucid/scilab/lucid

« back to all changes in this revision

Viewing changes to modules/data_structures/help/pt_BR/hypermatrices.xml

  • Committer: Bazaar Package Importer
  • Author(s): Sylvestre Ledru
  • Date: 2009-04-28 18:47:03 UTC
  • mfrom: (1.1.7 upstream) (4.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090428184703-7thddz8vtwqmxmx2
Tags: 5.1.1-4
* librefblas3-dev does not exist (yet). Thanks to Jose Ramon
* Do not stop when ocamlopt is not available on the arch 
  (ocaml-not-available.diff)
* Provide a clear error message for archs where modelicac compiler is 
  not available (modelicac-not-available.diff)
* scilab startup script moved from package scilab => scilab-bin (because of
  the ocamlopt problem, I cannot predict if modelicac will be available or
  not. Therefor, I ship usr/bin/ instead of binary per binary. This will
  also simplifies the packaging of Scilab 5.2)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1"?>
 
2
<!--
 
3
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 
4
 * Copyright (C) 2007-2008 - INRIA
 
5
 *
 
6
 * This file must be used under the terms of the CeCILL.
 
7
 * This source file is licensed as described in the file COPYING, which
 
8
 * you should have received as part of this distribution.  The terms
 
9
 * are also available at
 
10
 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
 
11
 *
 
12
 -->
 
13
<refentry version="5.0-subset Scilab" xml:id="hypermatrices" xml:lang="en"
 
14
          xmlns="http://docbook.org/ns/docbook"
 
15
          xmlns:xlink="http://www.w3.org/1999/xlink"
 
16
          xmlns:svg="http://www.w3.org/2000/svg"
 
17
          xmlns:ns4="http://www.w3.org/1999/xhtml"
 
18
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
 
19
          xmlns:db="http://docbook.org/ns/docbook">
 
20
  <info>
 
21
    <pubdate>$LastChangedDate$</pubdate>
 
22
  </info>
 
23
 
 
24
  <refnamediv>
 
25
    <refname>hypermatrices</refname>
 
26
 
 
27
    <refpurpose>objeto do Scilab: matrizes n-dimensionais</refpurpose>
 
28
  </refnamediv>
 
29
 
 
30
  <refsection>
 
31
    <title>Descri��o</title>
 
32
 
 
33
    <para>O tipo hipermatriz ("hypermatrix") permite manipular arrays
 
34
    multidimensionais.</para>
 
35
 
 
36
    <para>Hipermatrizes podem ser definidas por uma extens�o das matrizes 2D
 
37
    como segue: a=[1 2;3 4];a(:,:,2)=rand(2,2)</para>
 
38
 
 
39
    <para>ou usando a fun��o <literal>hypermat</literal> diretamente.</para>
 
40
 
 
41
    <para>As entradas podem ser n�meros reais ou complexos, polin�mios, raz�es
 
42
    de polin�mios, strings ou valores booleanos.</para>
 
43
 
 
44
    <para>Hipermatrizes s�o <literal>mlists</literal>:
 
45
    <literal>mlist(['hm','dims','entries'],sz,v)</literal> onde
 
46
    <literal>sz</literal> � o vetor linha de dimens�es e <literal>v</literal>
 
47
    � o vetor coluna de entradas (as primeiras dimens�es s�o armazenadas
 
48
    primeiro)</para>
 
49
 
 
50
    <para>NOTAS: O n�mero de dimens�es de hipermatrizes com tamanhos mais �
 
51
    direita iguais a 1 � automaticamente reduzido. Uma hipermatriz com apenas
 
52
    duas dimens�es � automaticamente trocada por uma matriz regular (tipo
 
53
    1).</para>
 
54
  </refsection>
 
55
 
 
56
  <refsection>
 
57
    <title>Exemplos</title>
 
58
 
 
59
    <programlisting role="example">
 
60
 
 
61
a(1,1,1,1:2)=[1 2]
 
62
a=[1 2;3 4];a(:,:,2)=rand(2,2)
 
63
a(1,1,:)
 
64
 
 
65
size(a)
 
66
 
 
67
a(:,:,1) //redu��o de dimensionalidade 
 
68
type(a(:,:,1))
 
69
 
 
70
[a a]
 
71
 
 
72
 
 
73
 
 
74
 
 
75
  </programlisting>
 
76
  </refsection>
 
77
 
 
78
  <refsection>
 
79
    <title>Ver Tamb�m</title>
 
80
 
 
81
    <simplelist type="inline">
 
82
      <member><link linkend="hypermat">hypermat</link></member>
 
83
    </simplelist>
 
84
  </refsection>
 
85
</refentry>