#include <lattice_change_cg.h>
|
| | Lattice_Change_CG () |
| | ~Lattice_Change_CG ()=default |
| void | allocate (void) |
| bool | start (UnitCell &ucell, const ModuleBase::matrix &stress_in, const double &etot, std::ofstream &ofs, std::vector< double > &etot_info, const Relax_Criteria &criteria) |
| void | setup_cg_grad (const int dim, double *grad, const double *grad0, double *cg_grad, const double *cg_grad0, const int &ncggrad, int &flag) |
| | Setup conjugate gradient direction.
|
| void | Brent (double &fa, double &fb, double &fc, double &xa, double &xb, double &xc, double &best_x, double &xpt) |
| | Brent's method for one-dimensional minimization.
|
| void | third_order (const double &e0, const double &e1, const double &fa, const double &fb, const double x, double &best_x) |
| | Third-order polynomial interpolation for line search.
|
| void | f_cal (const int dim, const double *g0, const double *g1, double &f_value) |
| | Calculate projection of gradient onto search direction.
|
| void | setup_move (const int dim, double *move, double *cg_gradn, const double &trust_radius) |
| | Calculate movement vector from CG direction.
|
|
| void | normalize (const int dim, double *cg_gradn, const double *cg_grad) |
| | Normalize vector.
|
◆ Lattice_Change_CG()
| Lattice_Change_CG::Lattice_Change_CG |
( |
| ) |
|
◆ ~Lattice_Change_CG()
| Lattice_Change_CG::~Lattice_Change_CG |
( |
| ) |
|
|
default |
◆ allocate()
| void Lattice_Change_CG::allocate |
( |
void | | ) |
|
◆ start()
◆ LatticeChangeCGTest
◆ cg_grad0
| std::vector<double> Lattice_Change_CG::cg_grad0 |
|
private |
◆ e0
| double Lattice_Change_CG::e0 = 0.0 |
|
private |
◆ fa
| double Lattice_Change_CG::fa = 0.0 |
|
private |
◆ fb
| double Lattice_Change_CG::fb = 0.0 |
|
private |
◆ fc
| double Lattice_Change_CG::fc = 0.0 |
|
private |
◆ fmax
| double Lattice_Change_CG::fmax = 0.0 |
|
private |
◆ grad0
| std::vector<double> Lattice_Change_CG::grad0 |
|
private |
◆ lat0
| std::vector<double> Lattice_Change_CG::lat0 |
|
private |
◆ move0
| std::vector<double> Lattice_Change_CG::move0 |
|
private |
◆ nbrent
| int Lattice_Change_CG::nbrent = 0 |
|
private |
◆ ncggrad
| int Lattice_Change_CG::ncggrad = 0 |
|
private |
◆ sd
| bool Lattice_Change_CG::sd = false |
|
private |
◆ steplength
| double Lattice_Change_CG::steplength = 0.0 |
|
private |
◆ trial
| bool Lattice_Change_CG::trial = false |
|
private |
◆ xa
| double Lattice_Change_CG::xa = 0.0 |
|
private |
◆ xb
| double Lattice_Change_CG::xb = 0.0 |
|
private |
◆ xc
| double Lattice_Change_CG::xc = 0.0 |
|
private |
◆ xpt
| double Lattice_Change_CG::xpt = 0.0 |
|
private |
The documentation for this class was generated from the following files: