LDL Factorization

Factor square Hermitian positive definite matrices into lower, upper, and diagonal components

Library

Math Functions / Matrices and Linear Algebra / Matrix Factorizations

dspfactors

Description

The LDL Factorization block uniquely factors the square Hermitian positive definite input matrix S as

where L is a lower triangular square matrix with unity diagonal elements, D is a diagonal matrix, and L* is the Hermitian (complex conjugate) transpose of L. Only the diagonal and lower triangle of the input matrix are used, and any imaginary component of the diagonal entries is disregarded.

The block's output is a composite matrix with lower triangle elements lij from L, diagonal elements dij from D, and upper triangle elements uij from L*. It is always sample based. The output format is shown below for a 5-by-5 matrix.

LDL factorization requires half the computation of Gaussian elimination (LU decomposition), and is always stable. It is more efficient than Cholesky factorization because it avoids computing the square roots of the diagonal elements.

The algorithm requires that the input be square and Hermitian positive definite. When the input is not positive definite, the block reacts with the behavior specified by the Non-positive definite input parameter.

Fixed-Point Data Types

The following diagram shows the data types used within the LDL Factorization block for fixed-point signals.

You can set the intermediate product, product output, accumulator, and output data types in the block dialog as discussed below.

The output of the second multiplier is in the product output data type when the input is real. When the input is complex, the result of the multiplication is in the accumulator data type. For details on the complex multiplication performed, see Multiplication Data Types.

Examples

LDL decomposition of a 3-by-3 Hermitian positive definite matrix:

Dialog Box

The Main pane of the LDL Factorization block dialog appears as follows.

Non-positive definite input

Specify the action when nonpositive definite matrix inputs occur:

The Fixed-point pane of the LDL Factorization block dialog appears as follows.

Rounding mode

Select the rounding mode for fixed-point operations.

Overflow mode

Select the overflow mode for fixed-point operations.

Intermediate product

Use this parameter to specify how you would like to designate the intermediate product word and fraction lengths. See Fixed-Point Data Types for an illustration depicting the use of the intermediate product data type in this block:

Product output

Use this parameter to specify how you would like to designate the product output word and fraction lengths. See Fixed-Point Data Types and Multiplication Data Types for illustrations depicting the use of the product output data type in this block:

Accumulator

Use this parameter to specify how you would like to designate the accumulator word and fraction lengths. See Fixed-Point Data Types and Multiplication Data Types for illustrations depicting the use of the accumulator data type in this block.

Output

Use this parameter to specify how you would like to designate the output word and fraction lengths. See Fixed-Point Data Types for an illustration depicting the use of the output data type in this block:

Lock scaling against changes by the autoscaling tool

Select this parameter to prevent any fixed-point scaling you specify in this block mask from being overridden by the autoscaling feature of the Fixed-Point Tool. See the fxptdlg reference page for more information.

References

Golub, G. H., and C. F. Van Loan. Matrix Computations. 3rd ed. Baltimore, MD: Johns Hopkins University Press, 1996.

Supported Data Types

PortSupported Data Types

S

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed only)

  • 8-, 16-, and 32-bit signed integers

LDL'

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed only)

  • 8-, 16-, and 32-bit signed integers

See Also

Cholesky FactorizationSignal Processing Blockset
LDL InverseSignal Processing Blockset
LDL SolverSignal Processing Blockset
LU FactorizationSignal Processing Blockset
QR FactorizationSignal Processing Blockset

See Matrix Factorizations for related information.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS