solve_direct_lagrange¶
- sectionproperties.analysis.solver.solve_direct_lagrange(k_lg: csc_matrix, f: npt.NDArray[np.float64]) npt.NDArray[np.float64][source]¶
Solves a linear system using the direct solver method (Lagrangian multiplier).
- Parameters:
k_lg (csc_matrix) –
(N+1) x (N+1)Lagrangian multiplier matrix of the linear systemf (npt.NDArray[np.float64]) –
N x 1right hand side of the linear system
- Returns:
The solution vector to the linear system of equations
- Raises:
RuntimeError – If the Lagrangian multiplier method exceeds a relative tolerance of
1e-7or absolute tolerance related to your machine’s floating point precision.- Return type:
npt.NDArray[np.float64]