12 const double pi = 3.14159265358979323846;
19 extern double (*
f)(double, double, double);
20 extern double (*
exact)(double, double, double);
26 void print(
size_t m,
size_t n,
const std::vector<T>& M) {
27 for (
size_t i=0; i<
m; i++) {
28 for (
size_t j=0; j<n; j++) {
29 std::cout << i <<
" " << M[i*n+j] <<
" ";
31 std::cout << std::endl;
35 std::vector<double>
tabulate(
double(*
f)(
double,
double,
double), std::vector<double> x, std::vector<double> y, std::vector<double> z);
37 std::vector<double>
linspace(
double a,
double b,
size_t n,
bool include_right_endpoint =
true);
const double m
Definition: gfit.cc:199
static const double b
Definition: nonlinschro.cc:119
static const double a
Definition: nonlinschro.cc:118
const double L
Definition: testpc.h:13
const double zshift
Definition: testpc.h:16
const double pi
Definition: testpc.h:12
const double yshift
Definition: testpc.h:15
double(* exact)(double, double, double)
Definition: testfuns.cc:6
void print(size_t m, size_t n, const std::vector< T > &M)
Definition: testpc.h:26
std::vector< double > tabulate(double(*f)(double, double, double), std::vector< double > x, std::vector< double > y, std::vector< double > z)
Definition: testfuns.cc:51
void set_test_case(int test_case)
Definition: testfuns.cc:230
std::vector< double > linspace(double a, double b, size_t n, bool include_right_endpoint=true)
Definition: testfuns.cc:221
double(* f)(double, double, double)
Definition: testfuns.cc:5
const double xshift
Definition: testpc.h:14