Click or drag to resize
DigitalRuneMatrixFSolveLinearEquations Method (MatrixF, MatrixF)
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 MatrixF SolveLinearEquations(
	MatrixF matrixA,
	MatrixF matrixB
)

Parameters

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

Return Value

Type: MatrixF
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