| MatrixFSolveLinearEquations Method (MatrixF, MatrixF) |
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 MatrixF SolveLinearEquations(
MatrixF matrixA,
MatrixF matrixB
)
Public Shared Function SolveLinearEquations (
matrixA As MatrixF,
matrixB As MatrixF
) As MatrixF
public:
static MatrixF^ SolveLinearEquations(
MatrixF^ matrixA,
MatrixF^ matrixB
)
static member SolveLinearEquations :
matrixA : MatrixF *
matrixB : MatrixF -> MatrixF
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:
MatrixFThe 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