#include <alpaqa/include/alpaqa/inner/directions/pantr/newton-tr.hpp>
Definition at line 27 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 30 of file newton-tr.hpp.
using AcceleratorParams = SteihaugCGParams<config_t> |
Definition at line 31 of file newton-tr.hpp.
using DirectionParams = NewtonTRDirectionParams<config_t> |
Definition at line 32 of file newton-tr.hpp.
|
default |
|
inline |
Definition at line 40 of file newton-tr.hpp.
|
inline |
Definition at line 42 of file newton-tr.hpp.
|
inline |
Definition at line 47 of file newton-tr.hpp.
|
inline |
Definition at line 79 of file newton-tr.hpp.
|
inline |
Definition at line 82 of file newton-tr.hpp.
|
inline |
Definition at line 91 of file newton-tr.hpp.
Definition at line 158 of file newton-tr.hpp.
|
inline |
Definition at line 165 of file newton-tr.hpp.
|
inline |
Definition at line 168 of file newton-tr.hpp.
|
inline |
Definition at line 172 of file newton-tr.hpp.
SteihaugCG<config_t> steihaug |
Definition at line 176 of file newton-tr.hpp.
DirectionParams direction_params |
Definition at line 177 of file newton-tr.hpp.
const Problem* problem = nullptr |
Definition at line 178 of file newton-tr.hpp.
std::optional<crvec> y = std::nullopt |
Definition at line 180 of file newton-tr.hpp.
std::optional<crvec> Σ = std::nullopt |
Definition at line 181 of file newton-tr.hpp.
|
mutable |
Definition at line 186 of file newton-tr.hpp.
|
mutable |
Definition at line 187 of file newton-tr.hpp.
|
mutable |
Definition at line 188 of file newton-tr.hpp.
|
mutable |
Definition at line 189 of file newton-tr.hpp.
vec work_2 |
Definition at line 189 of file newton-tr.hpp.
vec work_n_fd |
Definition at line 189 of file newton-tr.hpp.
vec work_m_fd |
Definition at line 189 of file newton-tr.hpp.