Forward Substitution - Solve LX=B for X when L is lower triangular matrix

Library

Math Functions / Matrices and Linear Algebra / Linear System Solvers

dspsolvers

Description

The Forward Substitution block solves the linear system LX=B by simple forward substitution of variables, where L is the lower triangular M-by-M matrix input to the L port, and B is the M-by-N matrix input to the B port. The output is the solution of the equations, the M-by-N matrix X, and is always sample based. The block does not check the rank of the inputs.

The block only uses the elements in the lower triangle of input L; the upper elements are ignored. When you select Input L is unit-lower triangular, the block replaces the elements on the diagonal of L with 1's. This is useful when matrix L is the result of another operation, such as an LDL decomposition, that uses the diagonal elements to represent the D matrix.

A length-M vector input at port B is treated as an M-by-1 matrix.

Fixed-Point Data Types

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

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

The output of the 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.

Dialog Box

The Main pane of the Forward Substitution block dialog appears as follows.

Input L is unit-lower triangular

Select to replace the elements on the diagonal of L with 1's.

Diagonal of complex input L is real

Select to optimize simulation speed when the diagonal elements of complex input L are real. This parameter is only visible when Input L is unit-upper triangular is not selected.

The Fixed-point pane of the Forward Substitution 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.

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 tool in the Fixed-Point Tool.

Supported Data Types

PortSupported Data Types

L

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed only)

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

B

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed only)

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

X

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed only)

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

See Also

Backward SubstitutionSignal Processing Blockset
Cholesky SolverSignal Processing Blockset
LDL SolverSignal Processing Blockset
Levinson-DurbinSignal Processing Blockset
LU SolverSignal Processing Blockset
QR SolverSignal Processing Blockset

See Linear System Solvers for related information.

  


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