|
| void | normalize (const int dim, double *cg_gradn, const double *cg_grad) |
| | Normalize vector.
|
| 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.
|
◆ normalize()
Normalize vector.
- Parameters
-
| dim | Dimension of vector |
| cg_gradn | Output normalized vector |
| cg_grad | Input vector |
The documentation for this class was generated from the following file:
- /home/runner/work/abacus-develop/abacus-develop/source/source_relax/unittests/test_cg_base.cpp