Gromacs  2026.0-dev-20241121-c76fa1e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
gmx::anonymous_namespace{neldermead.cpp} Namespace Reference

Classes

struct  NelderMeadParameters
 The parameters for a Nelder-Mead optimisation. More...
 

Functions

std::vector< reallinearCombination (real alpha, ArrayRef< const real > a, real beta, ArrayRef< const real > b)
 Evaluate the linear combination of two vectors a and b. More...
 

Variables

constexpr NelderMeadParameters defaultNelderMeadParameters = { 1, 2, 0.5, 0.5 }
 

Function Documentation

std::vector<real> gmx::anonymous_namespace{neldermead.cpp}::linearCombination ( real  alpha,
ArrayRef< const real a,
real  beta,
ArrayRef< const real b 
)

Evaluate the linear combination of two vectors a and b.

Parameters
[in]alphascaling factor for a
[in]avector to be scaled
[in]betascaling factor for b
[in]bvector to be scaled
Returns
alpha * a + beta * b.