ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
TestableCG Class Reference
Inheritance diagram for TestableCG:
Collaboration diagram for TestableCG:

Public Member Functions

void normalize (const int dim, double *cg_gradn, const double *cg_grad)
 Normalize vector.
Public Member Functions inherited from CG_Base
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.

Additional Inherited Members

Protected Member Functions inherited from CG_Base
void normalize (const int dim, double *cg_gradn, const double *cg_grad)
 Normalize vector.

Member Function Documentation

◆ normalize()

void CG_Base::normalize ( const int dim,
double * cg_gradn,
const double * cg_grad )

Normalize vector.

Parameters
dimDimension of vector
cg_gradnOutput normalized vector
cg_gradInput vector
Here is the caller graph for this function:

The documentation for this class was generated from the following file: