Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - Русский

Change language to:
English - Français - 日本語 - Português -

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

Справка Scilab >> Linear Algebra > Eigenvalue and Singular Value > bdiag


block diagonalization, generalized eigenvectors

Calling Sequence

[Ab [,X [,bs]]]=bdiag(A [,rmax])



real or complex square matrix


real number


real or complex square matrix


real or complex non-singular matrix


vector of integers


[Ab [,X [,bs]]]=bdiag(A [,rmax])

performs the block-diagonalization of matrix A. bs gives the structure of the blocks (respective sizes of the blocks). X is the change of basis i.e Ab = inv(X)*A*Xis block diagonal.

rmax controls the conditioning of X; the default value is the l1 norm of A.

To get a diagonal form (if it exists) choose a large value for rmax (rmax=1/%eps for example). Generically (for real random A) the blocks are (1x1) and (2x2) and X is the matrix of eigenvectors.


//Real case: 1x1 and 2x2 blocks

//Complex case: complex 1x1 blocks

See Also

  • schur — [ordered] Schur decomposition of matrix and pencils
  • sylv — Sylvester equation.
  • spec — eigenvalues of matrices and pencils
  • sysdiag — соединение блочно-диагональной системы
Report an issue
<< balanc 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:
Thu Oct 02 14:01:04 CEST 2014