solve_direct_lagrange#

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

  • f (ndarray[Any, dtype[float64]]) – 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 relative tolerance of 1e-7 or absolute tolerance related to your machine’s floating point precision.

Return type:

ndarray[Any, dtype[float64]]