#include <alpaqa/inner/directions/pantr/newton-tr.hpp>
Definition at line 36 of file newton-tr.hpp.
Collaboration diagram for NewtonTRDirection< Conf >: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 |
Collaboration diagram for NewtonTRDirection< Conf >::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.
Here is the call graph for this function:
|
inline |
Definition at line 88 of file newton-tr.hpp.
|
inline |
Definition at line 91 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 100 of file newton-tr.hpp.
Here is the call graph for this function:Definition at line 169 of file newton-tr.hpp.
|
inline |
Definition at line 173 of file newton-tr.hpp.
|
inline |
Definition at line 176 of file newton-tr.hpp.
|
inline |
Definition at line 180 of file newton-tr.hpp.
| SteihaugCG<config_t> steihaug |
Definition at line 184 of file newton-tr.hpp.
| DirectionParams direction_params |
Definition at line 185 of file newton-tr.hpp.
Definition at line 186 of file newton-tr.hpp.
| std::optional<crvec> y = std::nullopt |
Definition at line 188 of file newton-tr.hpp.
| std::optional<crvec> Σ = std::nullopt |
Definition at line 189 of file newton-tr.hpp.
|
mutable |
Definition at line 194 of file newton-tr.hpp.
|
mutable |
Definition at line 195 of file newton-tr.hpp.
|
mutable |
Definition at line 196 of file newton-tr.hpp.
|
mutable |
Definition at line 197 of file newton-tr.hpp.
| vec work_2 |
Definition at line 197 of file newton-tr.hpp.
| vec work_n_fd |
Definition at line 197 of file newton-tr.hpp.
| vec work_m_fd |
Definition at line 197 of file newton-tr.hpp.