27#include "neml2/solvers/NonlinearSystem.h"
28#include "neml2/tensors/Scalar.h"
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:56
Definition of a nonlinear system of equations.
Definition NonlinearSystem.h:37
void residual()
Convenient shortcut to assemble and return the system residual.
Definition NonlinearSystem.cxx:174
void Jacobian()
Convenient shortcut to assemble and return the system Jacobian.
Definition NonlinearSystem.cxx:190
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:100
The (logical) scalar.
Definition Scalar.h:38
Definition TrustRegionSubProblem.h:39
Tensor preconditioned_direction(const Scalar &s) const
Definition TrustRegionSubProblem.cxx:74
virtual void assemble(bool residual, bool Jacobian) override
Compute the residual and Jacobian.
Definition TrustRegionSubProblem.cxx:54
torch::TensorOptions _options
Definition TrustRegionSubProblem.h:54
TrustRegionSubProblem(const OptionSet &options)
Definition TrustRegionSubProblem.cxx:30
TensorShape _batch_sizes
Definition TrustRegionSubProblem.h:52
Tensor preconditioned_solve(const Scalar &s, const Tensor &v) const
Definition TrustRegionSubProblem.cxx:68
virtual void reinit(const NonlinearSystem &system, const Scalar &delta)
Definition TrustRegionSubProblem.cxx:36
Definition CrossRef.cxx:30
torch::SmallVector< Size > TensorShape
Definition types.h:34