sc::LineOpt(3)
π
sc::LineOpt(3) β MPQC manual, bestie π
Okay so this is the sc::LineOpt(3) page from the MPQC manual, and itβs giving abstract-base-class energy in the best way. Letβs get into it. β¨
π NAME π
sc::LineOpt β the LineOpt abstract class is used to perform one dimensional optimizations. Periodt. π
β¨ SYNOPSIS β¨
#include <opt.h>
- Inherits
sc::Optimize. - Inherited by
sc::Backtrack, andsc::MCSearch.
π Public Member Functions π
LineOpt (StateIn &)β constructor, no extra description on the page.LineOpt (const Ref< KeyVal > &)β constructor, no extra description on the page.void save_data_state (StateOut &)β Save the base classes (withsave_data_state) and the members in the same order that theStateInCTOR initializes them.virtual void init (RefSCVector &direction)β Initializes the line search object.virtual void init (RefSCVector &direction, Ref< Function > function)β Initializes the line search object.void apply_transform (const Ref< NonlinearTransform > &)β Applies a nonlinear transform.double decrease_factor ()β Returns factor for sufficient decrease test.double set_decrease_factor (double factor)β Sets factor for sufficient decrease test.
π¦ Protected Member Functions π¦
int sufficient_decrease (RefSCVector &step)β protected member function; the page doesnβt add a separate description for it.
πΈ Protected Attributes πΈ
double decrease_factor_RefSCVector initial_x_double initial_value_RefSCVector initial_grad_RefSCVector search_direction_Ref< Function > function_
π Additional Inherited Members π
The original page has this section right here; it says there are additional inherited members, but it doesnβt list extra details under it. π«Ά
π¦ Detailed Description π¦
The LineOpt abstract class is used to perform one dimensional optimizations. Thatβs the whole vibe of the class, bestie. π
π₯ Member Function Documentation π₯
πΈ virtual void sc::LineOpt::init (RefSCVector & direction) [virtual] πΈ
Initializes the line search object. Argument is a search direction. Use of this method assumes the Optimize base class already has a function object (got it from a keyval or elsewhere).
Reimplemented in sc::MCSearch.
πΊ virtual void sc::LineOpt::init (RefSCVector & direction, Ref< Function > function) [virtual] πΊ
Initializes the line search object. First argument is a search direction, second argument is a function object to optimize. Use this method when a function must be passed to the Optimize base class.
Reimplemented in sc::MCSearch.
π void sc::LineOpt::save_data_state (StateOut &) [virtual] π
Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR initializes them. This must be implemented by the derived class if the class has data.
Reimplemented from sc::Optimize.
π Author π
Generated automatically by Doxygen for MPQC from the source code. I know, iconique. π«Ά
Thatβs the sc::LineOpt(3) MPQC page, bestie. Version 2.3.1, dated Sun Oct 4 2020. Bye and slay responsibly π
β¨
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms