#include <alpaqa/inner/directions/pantr/newton-tr.hpp>
Definition at line 36 of file newton-tr.hpp.
Classes | |
| struct | Params |
Public Types | |
| using | Problem = TypeErasedProblem<config_t> |
| using | AcceleratorParams = SteihaugCGParams<config_t> |
| using | DirectionParams = NewtonTRDirectionParams<config_t> |
Public Member Functions | |
| NewtonTRDirection ()=default | |
| NewtonTRDirection (const Params ¶ms) | |
| NewtonTRDirection (const AcceleratorParams ¶ms, const DirectionParams &directionparams={}) | |
| void | initialize (const Problem &problem, crvec y, crvec Σ, real_t γ_0, crvec x_0, crvec x̂_0, crvec p_0, crvec grad_ψx_0) |
| bool | has_initial_direction () const |
| bool | update (real_t γₖ, real_t γₙₑₓₜ, crvec xₖ, crvec xₙₑₓₜ, crvec pₖ, crvec pₙₑₓₜ, crvec grad_ψxₖ, crvec grad_ψxₙₑₓₜ) |
| real_t | apply (real_t γₖ, crvec xₖ, crvec x̂ₖ, crvec pₖ, crvec grad_ψxₖ, real_t radius, rvec qₖ) const |
| void | changed_γ (real_t γₖ, real_t old_γₖ) |
| void | reset () |
| std::string | get_name () const |
| auto | get_params () const |
Public Attributes | |
| SteihaugCG< config_t > | steihaug |
| DirectionParams | direction_params |
| const Problem * | problem = nullptr |
| std::optional< crvec > | y = std::nullopt |
| std::optional< crvec > | Σ = std::nullopt |
| indexvec | JK_sto |
| vec | rJ_sto |
| vec | qJ_sto |
| vec | work |
| vec | work_2 |
| vec | work_n_fd |
| vec | work_m_fd |
| struct alpaqa::NewtonTRDirection::Params |
| Class Members | ||
|---|---|---|
| AcceleratorParams | accelerator = {} | |
| DirectionParams | direction = {} | |
| using Problem = TypeErasedProblem<config_t> |
Definition at line 39 of file newton-tr.hpp.
| using AcceleratorParams = SteihaugCGParams<config_t> |
Definition at line 40 of file newton-tr.hpp.
| using DirectionParams = NewtonTRDirectionParams<config_t> |
Definition at line 41 of file newton-tr.hpp.
|
default |
|
inline |
Definition at line 49 of file newton-tr.hpp.
|
inline |
Definition at line 51 of file newton-tr.hpp.
|
inline |
Definition at line 56 of file newton-tr.hpp.
|
inline |
Definition at line 92 of file newton-tr.hpp.
|
inline |
Definition at line 95 of file newton-tr.hpp.
|
inline |
TODO: use a better rule to determine the step size
TODO: use a better rule to determine the step size
Definition at line 104 of file newton-tr.hpp.
Definition at line 175 of file newton-tr.hpp.
|
inline |
Definition at line 179 of file newton-tr.hpp.
|
inline |
Definition at line 182 of file newton-tr.hpp.
|
inline |
Definition at line 186 of file newton-tr.hpp.
| SteihaugCG<config_t> steihaug |
Definition at line 190 of file newton-tr.hpp.
| DirectionParams direction_params |
Definition at line 191 of file newton-tr.hpp.
| const Problem* problem = nullptr |
Definition at line 192 of file newton-tr.hpp.
| std::optional<crvec> y = std::nullopt |
Definition at line 194 of file newton-tr.hpp.
| std::optional<crvec> Σ = std::nullopt |
Definition at line 195 of file newton-tr.hpp.
|
mutable |
Definition at line 200 of file newton-tr.hpp.
|
mutable |
Definition at line 201 of file newton-tr.hpp.
|
mutable |
Definition at line 202 of file newton-tr.hpp.
|
mutable |
Definition at line 203 of file newton-tr.hpp.
| vec work_2 |
Definition at line 203 of file newton-tr.hpp.
| vec work_n_fd |
Definition at line 203 of file newton-tr.hpp.
| vec work_m_fd |
Definition at line 203 of file newton-tr.hpp.