Linear solvers
FESolvers.BackslashSolver
— TypeBackslashSolver()
The standard julia linear solver using Δx .= -K\r
FESolvers.LinearSolveSolver
— TypeLinearSolveSolver([alg], K, r=zeros(eltype(K), size(K,1)))
Create a linear solver with an algorithm alg
from LinearSolve.jl
. Please see LinearSolve.jl
's documentation for different solver algorithms. If not given, LinearSolve
's default algorithm will be used.
Using this solver requires using
or import
ing LinearSolve.jl
Custom linear solver
A linear solver should support the solve_linear!
function specified below.
FESolvers.solve_linear!
— Functionsolve_linear!(Δx, K, r, linearsolver)
Using the method specified by linearsolver
, solve K Δx = -r
for Δx