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