solve_with_known

compas.numerical.solve_with_known(A, b, x, known)[source]

Solve a system of linear equations with part of solution known.

Parameters:
Aarray

Coefficient matrix represented as an (m x n) array.

barray

Right-hand-side represented as an (m x 1) array.

xarray

Unknowns/knowns represented as an (n x 1) array.

knownlist

The indices of the known elements of x.

Returns:
array: (n x 1) vector solution.

Notes

Computes the solution of the system of linear equations.

\[\mathbf{A} \mathbf{x} = \mathbf{b}\]