Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 18.104.22.168 (22.214.171.124)
|C#||Visual Basic||Visual C++||F#|
public sealed class SquareLUDecomposition
Public NotInheritable Class SquareLUDecomposition
public ref class SquareLUDecomposition sealed
[<SealedAttribute>] type SquareLUDecomposition = class end
XNA Framework Only
.NET Compact Framework Only
Computes the determinant of the original matrix.
Gets the dimension of the system.
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.(Inherited from Object.)
Serves as a hash function for a particular type.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
Computes the the inverse of the original matrix.
Gets the L factor.
Creates a shallow copy of the current Object.(Inherited from Object.)
Gets the permutation matrix.
Returns the solution vector that, when multiplied by the original matrix, produces the given left-hand side vector.
Gets the U factor.
An LU decomposition is a representation of a matrix M as the product of a lower-left-triagular matrix L and and an upper-right-triangular matrix U. To reduce numerical instabilities, we actually decompose a row-wise permutation of a matrix, so that we have P A = L U, where P is a permutation matrix.
For example, here is an LU decomposition of a permutation of a simple 3 X 3 matrix:
Given an LU decomposition of a permutation A, we can solve systems of linear equations or compute the determinant or inverse of A. LU decomposition is the fastest way to solve an arbitrary system of linear equations. It is much faster, and less subject to rounding errors, to solve Ax=b by LU decomposition than than by inverting A and multiplying A-1b.
You can use the LUDecomposition()()()() method to obtain the LU decomposition of any non-singular square matrix.