24 for (
int i = 0; i <
n; ++i)
28 os << std::setw(22) << r << std::setw(22) << u << std::setw(22) << du << std::endl;
35 xmlNodePtr xmlCoefs = cur->xmlChildrenNode;
36 while (xmlCoefs != NULL)
38 std::string cname((
const char*)xmlCoefs->name);
39 if (cname ==
"coefficients")
41 xmlCoefs = xmlCoefs->next;
helper functions for EinsplineSetBuilder
void print(OptimizableFunctorBase &func, std::ostream &os, double extent)
evaluates a functor (value and derivative) and dumps the quantities to output
virtual real_type f(real_type r)=0
evaluate the value at r
Define a base class for one-dimensional functions with optimizable variables.
XMLNodeString convert xmlNode contents into a std::string XMLAttrString convert one xmlNode attribute...
OHMMS_PRECISION real_type
std::string getXMLAttributeValue(const xmlNodePtr cur, const std::string_view name)
get the value string for attribute name if name is unfound in cur you get an empty string back this i...
real_type cutoff_radius
maximum cutoff
Base class for any functor with optimizable parameters.
virtual real_type df(real_type r)=0
evaluate the first derivative
std::string extractCoefficientsID(xmlNodePtr cur)
return the id of the first coefficients. If not found, return an emtpy string
optimize::VariableSet::real_type real_type
typedef for real values