Peano
TP::Utilities Namespace Reference

Functions

int * ivector (long nl, long nh)
 
double * dvector (long nl, long nh)
 
int ** imatrix (long nrl, long nrh, long ncl, long nch)
 
double ** dmatrix (long nrl, long nrh, long ncl, long nch)
 
double *** d3tensor (long nrl, long nrh, long ncl, long nch, long ndl, long ndh)
 
void free_ivector (int *v, long nl, long nh)
 
void free_dvector (double *v, long nl, long nh)
 
void free_imatrix (int **m, long nrl, long nrh, long ncl, long nch)
 
void free_dmatrix (double **m, long nrl, long nrh, long ncl, long nch)
 
void free_d3tensor (double ***t, long nrl, long nrh, long ncl, long nch, long ndl, long ndh)
 
int minimum2 (int i, int j)
 
int minimum3 (int i, int j, int k)
 
int maximum2 (int i, int j)
 
int maximum3 (int i, int j, int k)
 
int pow_int (int mantisse, int exponent)
 
void chebft_Zeros (double u[], int n, int inv)
 
void chebft_Extremes (double u[], int n, int inv)
 
void chder (double *c, double *cder, int n)
 
double chebev (double a, double b, double c[], int m, double x)
 
void fourft (double *u, int N, int inv)
 
void fourder (double u[], double du[], int N)
 
void fourder2 (double u[], double d2u[], int N)
 
double fourev (double *u, int N, double x)
 
double norm1 (double *v, int n)
 
double norm2 (double *v, int n)
 
double scalarproduct (double *v, double *w, int n)
 
void nrerror (char error_text[])
 

Function Documentation

◆ chder()

void TP::Utilities::chder ( double *  c,
double *  cder,
int  n 
)

Definition at line 342 of file TP_Utilities.cpp.

References acoustic::c, and euler::j.

Referenced by TP::TwoPunctures::Derivatives_AB3().

Here is the caller graph for this function:

◆ chebev()

double TP::Utilities::chebev ( double  a,
double  b,
double  c[],
int  m,
double  x 
)

Definition at line 354 of file TP_Utilities.cpp.

References swe::b, acoustic::c, euler::j, ModeCalc::x, and csv_to_plot::y.

Referenced by TP::TwoPunctures::PunctEvalAtArbitPosition(), and TP::TwoPunctures::PunctEvalAtArbitPositionFast().

Here is the caller graph for this function:

◆ chebft_Extremes()

void TP::Utilities::chebft_Extremes ( double  u[],
int  n,
int  inv 
)

Definition at line 298 of file TP_Utilities.cpp.

References acoustic::c, dvector(), free_dvector(), euler::j, and euler::u.

Here is the call graph for this function:

◆ chebft_Zeros()

void TP::Utilities::chebft_Zeros ( double  u[],
int  n,
int  inv 
)

Definition at line 250 of file TP_Utilities.cpp.

References acoustic::c, dvector(), free_dvector(), euler::j, and euler::u.

Referenced by TP::TwoPunctures::Derivatives_AB3(), TP::TwoPunctures::PunctEvalAtArbitPosition(), and TP::TwoPunctures::SpecCoef().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3tensor()

double *** TP::Utilities::d3tensor ( long  nrl,
long  nrh,
long  ncl,
long  nch,
long  ndl,
long  ndh 
)

Definition at line 102 of file TP_Utilities.cpp.

References acoustic::depth, and euler::j.

Referenced by TP::TwoPunctures::SpecCoef().

Here is the caller graph for this function:

◆ dmatrix()

double ** TP::Utilities::dmatrix ( long  nrl,
long  nrh,
long  ncl,
long  nch 
)

◆ dvector()

◆ fourder()

void TP::Utilities::fourder ( double  u[],
double  du[],
int  N 
)

Definition at line 441 of file TP_Utilities.cpp.

References euler::u.

Referenced by TP::TwoPunctures::Derivatives_AB3().

Here is the caller graph for this function:

◆ fourder2()

void TP::Utilities::fourder2 ( double  u[],
double  d2u[],
int  N 
)

Definition at line 458 of file TP_Utilities.cpp.

References euler::u.

Referenced by TP::TwoPunctures::Derivatives_AB3().

Here is the caller graph for this function:

◆ fourev()

double TP::Utilities::fourev ( double *  u,
int  N,
double  x 
)

◆ fourft()

void TP::Utilities::fourft ( double *  u,
int  N,
int  inv 
)

Definition at line 378 of file TP_Utilities.cpp.

References swe::b, dvector(), free_dvector(), euler::u, and ModeCalc::x.

Referenced by TP::TwoPunctures::Derivatives_AB3(), TP::TwoPunctures::PunctEvalAtArbitPosition(), and TP::TwoPunctures::SpecCoef().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ free_d3tensor()

void TP::Utilities::free_d3tensor ( double ***  t,
long  nrl,
long  nrh,
long  ncl,
long  nch,
long  ndl,
long  ndh 
)

Definition at line 183 of file TP_Utilities.cpp.

References acoustic::t.

Referenced by TP::TwoPunctures::SpecCoef().

Here is the caller graph for this function:

◆ free_dmatrix()

void TP::Utilities::free_dmatrix ( double **  m,
long  nrl,
long  nrh,
long  ncl,
long  nch 
)

◆ free_dvector()

◆ free_imatrix()

void TP::Utilities::free_imatrix ( int **  m,
long  nrl,
long  nrh,
long  ncl,
long  nch 
)

Definition at line 165 of file TP_Utilities.cpp.

Referenced by TP::TwoPunctures::bicgstab(), and TP::TwoPunctures::TestRelax().

Here is the caller graph for this function:

◆ free_ivector()

void TP::Utilities::free_ivector ( int *  v,
long  nl,
long  nh 
)

Definition at line 149 of file TP_Utilities.cpp.

References acoustic::v.

Referenced by TP::TwoPunctures::bicgstab(), TP::TwoPunctures::Derivatives_AB3(), and TP::TwoPunctures::TestRelax().

Here is the caller graph for this function:

◆ imatrix()

int ** TP::Utilities::imatrix ( long  nrl,
long  nrh,
long  ncl,
long  nch 
)

Definition at line 44 of file TP_Utilities.cpp.

Referenced by TP::TwoPunctures::bicgstab(), and TP::TwoPunctures::TestRelax().

Here is the caller graph for this function:

◆ ivector()

int * TP::Utilities::ivector ( long  nl,
long  nh 
)

Definition at line 16 of file TP_Utilities.cpp.

Referenced by TP::TwoPunctures::bicgstab(), TP::TwoPunctures::Derivatives_AB3(), and TP::TwoPunctures::TestRelax().

Here is the caller graph for this function:

◆ maximum2()

int TP::Utilities::maximum2 ( int  i,
int  j 
)

Definition at line 216 of file TP_Utilities.cpp.

References euler::j.

Referenced by TP::TwoPunctures::SetMatrix_JFD().

Here is the caller graph for this function:

◆ maximum3()

int TP::Utilities::maximum3 ( int  i,
int  j,
int  k 
)

◆ minimum2()

int TP::Utilities::minimum2 ( int  i,
int  j 
)

Definition at line 194 of file TP_Utilities.cpp.

References euler::j.

Referenced by TP::TwoPunctures::SetMatrix_JFD().

Here is the caller graph for this function:

◆ minimum3()

int TP::Utilities::minimum3 ( int  i,
int  j,
int  k 
)

Definition at line 204 of file TP_Utilities.cpp.

References euler::j.

◆ norm1()

double TP::Utilities::norm1 ( double *  v,
int  n 
)

Definition at line 492 of file TP_Utilities.cpp.

References acoustic::v.

Referenced by TP::TwoPunctures::TestRelax().

Here is the caller graph for this function:

◆ norm2()

double TP::Utilities::norm2 ( double *  v,
int  n 
)

◆ nrerror()

void TP::Utilities::nrerror ( char  error_text[])

◆ pow_int()

int TP::Utilities::pow_int ( int  mantisse,
int  exponent 
)

Definition at line 238 of file TP_Utilities.cpp.

◆ scalarproduct()

double TP::Utilities::scalarproduct ( double *  v,
double *  w,
int  n 
)

Definition at line 519 of file TP_Utilities.cpp.

References acoustic::v, and ModeCalc::w.

Referenced by TP::TwoPunctures::bicgstab().

Here is the caller graph for this function: