Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Algèbre Lineaire > Eigenvalue and Singular Value > balanc

balanc

matrix or pencil balancing

Calling Sequence

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

Arguments

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 eigenvalue problem.

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

Remark

Balancing is made in the functions bdiag and spec.

Examples

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 — bloc-diagonalisation, vecteurs propres généralisés
  • spec — valeurs propres d'une matrice
  • schur — [ordered] Schur decomposition of matrix and pencils
Report an issue
<< svd Eigenvalue and Singular Value gschur >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:21:39 CEST 2015