File: balanc.cat

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (42 lines) | stat: -rw-r--r-- 979 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

balanc(2)                      Scilab Function                      balanc(2)
NAME
  balanc - matrix or pencil balancing

CALLING SEQUENCE
  [Ab,X]=balanc(A)
  [Eb,Ab,X,Y]=balanc(E,A)

PARAMETERS

  A:        a real square matrix

  X:        a real square invertible matrix

  E:        a real square matrix (same dimension as A)

  Y:        a real square invertible matrix.

DESCRIPTION
  Balance a square matrix to improve its condition number.

  [Ab,X] = balanc(A) finds a similarity transformation X such that Ab =
  inv(X)*A*X has approximately equal row and column norms.

  For matrix pencils,balancing is done for improving the generalized eigen-
  value problem.

  [Eb,Ab,X,Y] = balanc(E,A) returns left and right transformations X and Y
  such that Eb=X*E*Y Ab=X*A*Y

Remark
  Balancing is made in the functions bdiag and spec.

EXAMPLE
  A=[1/2^10,1/2^10;2^10,2^10];
  [Ab,X]=balanc(A);
  norm(A(1,:))/norm(A(2,:))
  norm(Ab(1,:))/norm(Ab(2,:))

SEE ALSO
  bdiag