| MatrixDSolveLinearEquations Method (MatrixD, VectorD) |
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 VectorD SolveLinearEquations(
MatrixD matrixA,
VectorD vectorB
)
Public Shared Function SolveLinearEquations (
matrixA As MatrixD,
vectorB As VectorD
) As VectorD
public:
static VectorD^ SolveLinearEquations(
MatrixD^ matrixA,
VectorD^ vectorB
)
static member SolveLinearEquations :
matrixA : MatrixD *
vectorB : VectorD -> VectorD
Parameters
- matrixA
- Type: DigitalRune.Mathematics.AlgebraMatrixD
The matrix A. (Can be rectangular. Number of rows ≥ number of columns.)
- vectorB
- Type: DigitalRune.Mathematics.AlgebraVectorD
The column vector b with as many rows as A.
Return Value
Type:
VectorDThe vector 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