solve_direct_lagrange#

sectionproperties.analysis.solver.solve_direct_lagrange(k_lg: csc_matrix, f: ndarray) ndarray[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 system

  • f (ndarray) – N x 1 right 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 tolerance of 1e-5

Return type:

ndarray