27#include "neml2/models/Model.h"
28#include "neml2/models/ModelNonlinearSystem.h"
29#include "neml2/solvers/NonlinearSolver.h"
45 void set_value(
bool out,
bool dout_din,
bool d2out_din2)
override;
48 std::shared_ptr<ModelNonlinearSystem>
_sys;
std::shared_ptr< ModelNonlinearSystem > _sys
The underlying nonlinear system that wraps around a Model.
Definition ImplicitUpdate.h:48
std::size_t last_iterations() const
Definition ImplicitUpdate.h:42
ImplicitUpdate(const OptionSet &options)
void to(const TensorOptions &options) override
Send model to a different device or dtype.
std::size_t _last_iterations
Last solve result.
Definition ImplicitUpdate.h:54
static OptionSet expected_options()
void set_value(bool out, bool dout_din, bool d2out_din2) override
The map between input -> output, and optionally its derivatives.
std::shared_ptr< NonlinearSolver > _solver
The nonlinear solver used to solve the nonlinear system.
Definition ImplicitUpdate.h:51
Model(const OptionSet &options)
Construct a new Model object.
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:52
Definition DiagnosticsInterface.h:31
c10::TensorOptions TensorOptions
Definition types.h:66