| MatrixDSolveLinearEquations Method (MatrixD, MatrixD) |
Solves the linear set of equations A * X = B.
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static MatrixD SolveLinearEquations(
MatrixD matrixA,
MatrixD matrixB
)
Public Shared Function SolveLinearEquations (
matrixA As MatrixD,
matrixB As MatrixD
) As MatrixD
public:
static MatrixD^ SolveLinearEquations(
MatrixD^ matrixA,
MatrixD^ matrixB
)
static member SolveLinearEquations :
matrixA : MatrixD *
matrixB : MatrixD -> MatrixD
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:
MatrixDThe matrix X.
Exceptions 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