1
<?xml version="1.0" encoding="ISO-8859-1"?>
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
* Copyright (C) 2007-2008 - INRIA
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
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">
21
<pubdate>$LastChangedDate$</pubdate>
25
<refname>hypermatrices</refname>
27
<refpurpose>objeto do Scilab: matrizes n-dimensionais</refpurpose>
31
<title>Descri��o</title>
33
<para>O tipo hipermatriz ("hypermatrix") permite manipular arrays
34
multidimensionais.</para>
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>
39
<para>ou usando a fun��o <literal>hypermat</literal> diretamente.</para>
41
<para>As entradas podem ser n�meros reais ou complexos, polin�mios, raz�es
42
de polin�mios, strings ou valores booleanos.</para>
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
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
57
<title>Exemplos</title>
59
<programlisting role="example">
62
a=[1 2;3 4];a(:,:,2)=rand(2,2)
67
a(:,:,1) //redu��o de dimensionalidade
79
<title>Ver Tamb�m</title>
81
<simplelist type="inline">
82
<member><link linkend="hypermat">hypermat</link></member>