solve_direct_sparse#

planestress.analysis.solver.solve_direct_sparse(k: csc_matrix, f: npt.NDArray[np.float64]) npt.NDArray[np.float64][source]#

Solves a sparse linear system using the direct solver method.

Parameters:
  • k (csc_matrix) – N x N sparse matrix of the linear system.

  • f (npt.NDArray[np.float64]) – N x 1 right hand side of the linear system.

Returns:

The solution vector to the sparse linear system of equations.

Return type:

npt.NDArray[np.float64]