27#include "neml2/solvers/NonlinearSystem.h"
Definition BatchTensor.h:32
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
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:175
void Jacobian()
Convenient shortcut to assemble and return the system Jacobian.
Definition NonlinearSystem.cxx:192
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:59
The (logical) scalar.
Definition Scalar.h:38
Definition TrustRegionSubProblem.h:38
virtual void assemble(bool residual, bool Jacobian) override
Compute the residual and Jacobian.
Definition TrustRegionSubProblem.cxx:54
torch::TensorOptions _options
Definition TrustRegionSubProblem.h:53
BatchTensor preconditioned_solve(const Scalar &s, const BatchTensor &v) const
Definition TrustRegionSubProblem.cxx:68
TrustRegionSubProblem(const OptionSet &options)
Definition TrustRegionSubProblem.cxx:30
TorchShape _batch_sizes
Definition TrustRegionSubProblem.h:51
virtual void reinit(const NonlinearSystem &system, const Scalar &delta)
Definition TrustRegionSubProblem.cxx:36
BatchTensor preconditioned_direction(const Scalar &s) const
Definition TrustRegionSubProblem.cxx:74
Definition CrossRef.cxx:32
std::vector< TorchSize > TorchShape
Definition types.h:36