MADNESS 0.10.1
Functions | Variables
testpc.h File Reference
#include <iostream>
#include <complex>
#include <numeric>
#include <vector>
#include <cmath>
#include <madness/misc/gnuplot.h>
Include dependency graph for testpc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::vector< double > linspace (double a, double b, size_t n, bool include_right_endpoint=true)
 
template<typename T >
void print (size_t m, size_t n, const std::vector< T > &M)
 
void set_test_case (int test_case)
 
std::vector< double > tabulate (double(*f)(double, double, double), std::vector< double > x, std::vector< double > y, std::vector< double > z)
 

Variables

double(* exact )(double, double, double)
 
double(* f )(double, double, double)
 
const double L = 1.0
 
const double pi = 3.14159265358979323846
 
const double xshift = 0.0
 
const double yshift = 0.0
 
const double zshift = 0.0
 

Function Documentation

◆ linspace()

std::vector< double > linspace ( double  a,
double  b,
size_t  n,
bool  include_right_endpoint = true 
)

References a, b, h(), and v.

Referenced by main().

◆ print()

template<typename T >
void print ( size_t  m,
size_t  n,
const std::vector< T > &  M 
)

References m.

◆ set_test_case()

void set_test_case ( int  test_case)

◆ tabulate()

std::vector< double > tabulate ( double(*)(double, double, double)  f,
std::vector< double >  x,
std::vector< double >  y,
std::vector< double >  z 
)

References f, and k.

Variable Documentation

◆ exact

double(* exact) (double, double, double) ( double  ,
double  ,
double   
)
extern

◆ f

double(* f) (double, double, double) ( double  ,
double  ,
double   
)
extern

◆ L

const double L = 1.0

◆ pi

const double pi = 3.14159265358979323846

◆ xshift

const double xshift = 0.0

◆ yshift

const double yshift = 0.0

◆ zshift

const double zshift = 0.0