MADNESS 0.10.1
Classes | Functions | Variables
gfit.cc File Reference
#include <madness/tensor/tensor_lapack.h>
#include <madness/tensor/solvers.h>
#include <madness/world/print.h>
#include <cmath>
#include <iostream>
#include <algorithm>
Include dependency graph for gfit.cc:

Classes

class  Fred
 Wrapper around vector demonstrating interface necessary. More...
 

Functions

double Akernel (double p)
 
Tensor< double > arithmetic_series (long n, double a, double h)
 
double E0 (double p)
 
double errsq (const Tensor< double > f, const Tensor< double > x, const Tensor< double > w, const Tensor< double > c, const Tensor< double > expnt, const double mu, const double p)
 
double fit (double x, const Tensor< double > &c, const Tensor< double > &expnt)
 
Tensor< double > geometric_series (long n, double a, double r)
 
int main ()
 
Tensor< double > map_tensor (double(*f)(double), const Tensor< double > &x)
 
double myexp (double x)
 
Tensor< double > optimize_coeffs (const Tensor< double > &f, const Tensor< double > &x, const Tensor< double > &w, const Tensor< double > &expnt, const double mu, const double p, const bool prnt=0)
 
double reciprocal (double x)
 
double square (double x)
 

Variables

const double c = 137.0359895
 
const double m = 1
 
const double mc2 = m*c*c
 

Function Documentation

◆ Akernel()

double Akernel ( double  p)

References E0(), mc2, and p().

Referenced by main().

◆ arithmetic_series()

Tensor< double > arithmetic_series ( long  n,
double  a,
double  h 
)

References a, h(), and q().

◆ E0()

double E0 ( double  p)

References c, mc2, and p().

Referenced by Akernel().

◆ errsq()

double errsq ( const Tensor< double >  f,
const Tensor< double >  x,
const Tensor< double >  w,
const Tensor< double >  c,
const Tensor< double >  expnt,
const double  mu,
const double  p 
)

◆ fit()

double fit ( double  x,
const Tensor< double > &  c,
const Tensor< double > &  expnt 
)

References c, myexp(), madness::BaseTensor::size(), and sum.

Referenced by errsq(), and main().

◆ geometric_series()

Tensor< double > geometric_series ( long  n,
double  a,
double  r 
)

References a, and q().

Referenced by main().

◆ main()

int main ( void  )

◆ map_tensor()

Tensor< double > map_tensor ( double(*)(double)  f,
const Tensor< double > &  x 
)

◆ myexp()

double myexp ( double  x)

Referenced by fit(), Fred::make_g(), and optimize_coeffs().

◆ optimize_coeffs()

Tensor< double > optimize_coeffs ( const Tensor< double > &  f,
const Tensor< double > &  x,
const Tensor< double > &  w,
const Tensor< double > &  expnt,
const double  mu,
const double  p,
const bool  prnt = 0 
)

◆ reciprocal()

double reciprocal ( double  x)

Referenced by main().

◆ square()

double square ( double  x)

Variable Documentation

◆ c

const double c = 137.0359895

Referenced by E0(), errsq(), fit(), main(), and optimize_coeffs().

◆ m

const double m = 1

◆ mc2

const double mc2 = m*c*c

Referenced by Akernel(), and E0().