Click or drag to resize
DigitalRuneMatrixDSolveLinearEquations Method (MatrixD, MatrixD)
Solves the linear set of equations A * X = B.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static MatrixD SolveLinearEquations(
	MatrixD matrixA,
	MatrixD matrixB
)

Parameters

matrixA
Type: DigitalRune.Mathematics.AlgebraMatrixD
The matrix A. (Can be rectangular. Number of rows ≥ number of columns.)
matrixB
Type: DigitalRune.Mathematics.AlgebraMatrixD
The matrix B with the same number of rows as A and any number of columns.

Return Value

Type: MatrixD
The matrix X.
Exceptions
ExceptionCondition
ArgumentNullExceptionmatrixA or matrixB is .
ArgumentException The number of rows does not match.
ArgumentException The number of rows in matrixA must be greater than or equal to the number of columns.
MathematicsException The matrix A does not have full rank.
Remarks
If A is a square matrix, the X contains the solutions. If A is not a square matrix, the least squares solutions is returned.
See Also