27template <
typename NLSSetting>
52 template <
typename Assembler>
54 auto create(Assembler&& assembler)
const {
56 using fTraits =
typename decltype(f)::Traits;
58 using CorrectionType =
typename fTraits::template Range<1>;
59 using Domain =
typename fTraits::Domain;
60 auto updateF = [assembler, setting =
settings]<
typename D,
typename C>(D& x,
const C& b) {
62 setting.updateFunction(x, assembler->createFullVector(b));
64 setting.updateFunction(x, b);
66 auto settingsNew =
settings.rebindUpdateFunction(std::move(updateF));
Contains the generic DifferentiableFunctionFactory class.
Collection of fallback default functions.
Definition: assemblermanipulatorbuildingblocks.hh:22
::value auto createNonlinearSolver(NRConfig &&config, F &&f)
Function to create a NewtonRaphson solver instance.
Definition: newtonraphson.hh:82
A factory class for creating nonlinear solvers.
Definition: nonlinearsolverfactory.hh:29
NonlinearSolverFactory(NLSSetting s)
Constructs a NonlinearSolverFactory with the given settings.
Definition: nonlinearsolverfactory.hh:35
NLSSetting settings
Definition: nonlinearsolverfactory.hh:38
auto create(Assembler &&assembler) const
Creates a nonlinear solver using the provided assembler.
Definition: nonlinearsolverfactory.hh:54
static auto op(Assembler &&as, AffordanceCollection< Affordances... > affordances, DBCOption dbcOption=DBCOption::Full)
Definition: differentiablefunctionfactory.hh:25
Concept representing the requirements for a FlatAssembler.A type T satisfies FlatAssembler if it prov...
Definition: utils/concepts.hh:507