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

Change language to:
English - Français - 日本語 - 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

Справка Scilab >> Linear Algebra > Factorization > chol

chol

Cholesky factorization

Syntax

[R]=chol(X)

Arguments

X

a symmetric positive definite real or complex matrix.

Description

If X is positive definite, then R = chol(X) produces an upper triangular matrix R such that R'*R = X.

chol(X) uses only the diagonal and upper triangle of X. The lower triangular is assumed to be the (complex conjugate) transpose of the upper.

References

Cholesky decomposition is based on the Lapack routines DPOTRF for real matrices and ZPOTRF for the complex case.

Examples

W=rand(5,5)+%i*rand(5,5);
X=W*W';
R=chol(X);
norm(R'*R-X)

See also

  • spchol — sparse cholesky factorization
  • qr — QR decomposition
  • svd — singular value decomposition
  • bdiag — блоковая диагонализация, обобщённые собственные векторы
  • fullrf — full rank factorization
Report an issue
<< Factorization Factorization fullrf >>

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:
Mon Jan 03 14:39:53 CET 2022