1
<?xml version="1.0" encoding="ISO-8859-1"?>
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
* Copyright (C) 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 xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="range" xml:lang="en">
15
<refname>range</refname>
16
<refpurpose>Imagem (gerado) de A^k</refpurpose>
19
<title> Seq��ncia de Chamamento</title>
20
<synopsis>[X,dim]=range(A,k)</synopsis>
23
<title>Par�metros</title>
28
<para>matriz de reais ou complexos que se assume quadrada se k>1
41
<para>matriz ortonormal </para>
47
<para>inteiro (dimens�o de subespa�o)</para>
53
<title>Descri��o</title>
55
Computa��o da imagem de <literal>A^k</literal> ; as primeiras dim
56
colunas de <literal>X</literal> geram a imagem de <literal>A^k</literal>.
57
As �ltimas linhas de <literal>X</literal> geram o complemento ortogonal da
58
imagem. <literal>X*X'</literal> � a matriz identidade.
62
<title>Exemplos</title>
63
<programlisting role="example"><![CDATA[
64
A=rand(4,2)*rand(2,4); // 4 vetores colunas, 2 independentes.
65
[X,dim]=range(A,1);dim // computando a imagem
67
y1=A*rand(4,1); //um vetor que est� na imagem de A
68
y2=rand(4,1); //um vetor que n�o est� na imagem de A
69
norm(X(dim+1:$,:)*y1) //as �ltimas entradas s�o zeros, y1 est� na imagem de A
70
norm(X(dim+1:$,:)*y2) //as �ltimas entradas n�o s�o zeros
72
I=X(1:dim,:)' //I � uma base para a imagem
73
coeffs=X(1:dim,:)*y1 //componentes de y1 relativos � base I
75
norm(I*coeffs-y1) //verificando
79
<title> Ver Tamb�m </title>
80
<simplelist type="inline">
82
<link linkend="fullrfk">fullrfk</link>
85
<link linkend="rowcomp">rowcomp</link>
90
<title> Fun��o Usada</title>
92
A fun��o <literal>range</literal> � baseada na fun��o <link linkend="rowcomp">rowcomp</link> que usa decomposi��o <link linkend="svd">svd</link> (decomposi��o em valores singulares).