~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/linear_algebra/help/en_US/eigen/bdiag.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!--
 
3
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 
4
 * Copyright (C) 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 xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="bdiag">
 
14
    <refnamediv>
 
15
        <refname>bdiag</refname>
 
16
        <refpurpose> block diagonalization, generalized eigenvectors</refpurpose>
 
17
    </refnamediv>
 
18
    <refsynopsisdiv>
 
19
        <title>Calling Sequence</title>
 
20
        <synopsis>[Ab [,X [,bs]]]=bdiag(A [,rmax])</synopsis>
 
21
    </refsynopsisdiv>
 
22
    <refsection>
 
23
        <title>Arguments</title>
 
24
        <variablelist>
 
25
            <varlistentry>
 
26
                <term>A</term>
 
27
                <listitem>
 
28
                    <para>real or complex square matrix</para>
 
29
                </listitem>
 
30
            </varlistentry>
 
31
            <varlistentry>
 
32
                <term>rmax</term>
 
33
                <listitem>
 
34
                    <para>real number</para>
 
35
                </listitem>
 
36
            </varlistentry>
 
37
            <varlistentry>
 
38
                <term>Ab</term>
 
39
                <listitem>
 
40
                    <para>real or complex square matrix</para>
 
41
                </listitem>
 
42
            </varlistentry>
 
43
            <varlistentry>
 
44
                <term>X</term>
 
45
                <listitem>
 
46
                    <para>real or complex non-singular matrix</para>
 
47
                </listitem>
 
48
            </varlistentry>
 
49
            <varlistentry>
 
50
                <term>bs</term>
 
51
                <listitem>
 
52
                    <para>vector of integers</para>
 
53
                </listitem>
 
54
            </varlistentry>
 
55
        </variablelist>
 
56
    </refsection>
 
57
    <refsection>
 
58
        <title>Description</title>
 
59
        <programlisting role=""><![CDATA[ 
 
60
[Ab [,X [,bs]]]=bdiag(A [,rmax]) 
 
61
 ]]></programlisting>
 
62
        <para>
 
63
            performs the block-diagonalization of matrix <literal>A</literal>.  bs
 
64
            gives the structure of the blocks (respective sizes of the
 
65
            blocks).  <literal>X</literal> is the change of basis i.e 
 
66
            <literal>Ab = inv(X)*A*X</literal>is block diagonal.
 
67
        </para>
 
68
        <para>
 
69
            <literal>rmax</literal> controls the conditioning of <literal>X</literal>; the
 
70
            default value is the l1 norm of <literal>A</literal>.
 
71
        </para>
 
72
        <para>
 
73
            To get a diagonal form (if it exists) choose a large value for
 
74
            <literal>rmax</literal> (<literal>rmax=1/%eps</literal> for example).
 
75
            Generically (for real random A) the blocks are (1x1) and (2x2) and
 
76
            <literal>X</literal> is the matrix of eigenvectors.
 
77
        </para>
 
78
    </refsection>
 
79
    <refsection>
 
80
        <title>Examples</title>
 
81
        <programlisting role="example"><![CDATA[ 
 
82
//Real case: 1x1 and 2x2 blocks
 
83
a=rand(5,5);[ab,x,bs]=bdiag(a);ab
 
84
 
 
85
//Complex case: complex 1x1 blocks
 
86
[ab,x,bs]=bdiag(a+%i*0);ab
 
87
 ]]></programlisting>
 
88
    </refsection>
 
89
    <refsection role="see also">
 
90
        <title>See Also</title>
 
91
        <simplelist type="inline">
 
92
            <member>
 
93
                <link linkend="schur">schur</link>
 
94
            </member>
 
95
            <member>
 
96
                <link linkend="sylv">sylv</link>
 
97
            </member>
 
98
            <member>
 
99
                <link linkend="spec">spec</link>
 
100
            </member>
 
101
        </simplelist>
 
102
    </refsection>
 
103
</refentry>