FUNCTION REFERENCE
decomposition
Matrix decomposition object for solving linear systems.
Matrix decomposition object for solving linear systems.
Syntax
D = decomposition(A, 'banded')Syntax
X = D \ BSyntax
X = mldivide(D, B)Returns an object that keeps the real double square matrix A as it is at the call, together with the declared type; changing the variable A afterwards does not change D. D \ B solves A*X = B for one or more right-hand-side columns; B needs size(A, 1) rows (there is no scalar expansion). The 'banded' type is solved as A \ B solves a full square A: LU with partial pivoting (substitution when A is triangular), with the same singular and RCOND warnings. Read-only properties: MatrixSize, Type, CheckCondition (true), Datatype ('double'), IsConjugateTransposed (false), IsReal (true), IsSparse (false) and ScaleFactor (1).
Example
D = decomposition([0 2 0; 1 3 -1; 0 4 2], 'banded'); x = D \ [-2; -4; 2] % [2; -1; 3]Example
A = [4 1 0; 1 4 1; 0 1 4]; D = decomposition(A, 'banded'); A(1, 1) = 0; x = D \ [5; 6; 5] % [1; 1; 1]Differences from MATLAB: only the 'banded' type of a real double full square matrix; the other types, automatic type selection, options after the type (such as 'CheckCondition'), B / D, transposing and scaling the object are not supported yet. The solve works on dense storage and factors again for every D \ B, so it is not faster than A \ B.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.