TBCI Numerical high perf. C++ Library  2.8.0
Macros | Functions | Variables
my_nr.h File Reference

collection of useful routines More...

#include "tbci/vector.h"
#include "tbci/matrix.h"
#include "tbci/constants.h"
#include "tbci/solver/gauss_jordan.h"
Include dependency graph for my_nr.h:

Go to the source code of this file.

Macros

#define DELTA(i, j)   ((i==j)?1:0)
 
#define DELTAX   1e-30
 
#define CON2   2.0
 
#define CON   SQRT2
 
#define BIG   1.0e30
 
#define NTAB   10
 
#define SAFE   2.0
 

Functions

template<typename T >
NAMESPACE_TBCI void do_nothing (T dummy)
 
template<typename T >
int basis_trafo (long int value, long int basis, Vector< T > &index)
 
 INST (template< typename T > class Vector friend T partial_del(T(*func)(const Vector< T > &, const Vector< T > &), const Vector< T > &, const Vector< T > &, int, T, T &);) template< typename T > T partial_del(T(*func)(const Vector< T > &
 
Matrix< Ta (10, 10)
 
Vector< Tbuf_plus (xlen)
 
Vector< Tbuf_minus (xlen)
 

Variables

const Vector< T > const Vector< T > & x
 
const Vector< T > const Vector< T > const Vector< T > & p
 
const Vector< T > const Vector< T > const Vector< T > int mu
 
const Vector< T > const Vector< T > const Vector< T > int T h
 
const Vector< T > const Vector< T > const Vector< T > int T Terr
 
int xlen = x.size()
 

Detailed Description

collection of useful routines

Definition in file my_nr.h.

Macro Definition Documentation

◆ BIG

#define BIG   1.0e30

Definition at line 95 of file my_nr.h.

◆ CON

#define CON   SQRT2

Definition at line 94 of file my_nr.h.

◆ CON2

#define CON2   2.0

Definition at line 93 of file my_nr.h.

◆ DELTA

#define DELTA (   i,
 
)    ((i==j)?1:0)

Definition at line 44 of file my_nr.h.

◆ DELTAX

#define DELTAX   1e-30

Definition at line 69 of file my_nr.h.

◆ NTAB

#define NTAB   10

Definition at line 96 of file my_nr.h.

◆ SAFE

#define SAFE   2.0

Definition at line 97 of file my_nr.h.

Function Documentation

◆ a()

Matrix<T> a ( 10  ,
10   
)

◆ basis_trafo()

template<typename T >
int basis_trafo ( long int  value,
long int  basis,
Vector< T > &  index 
)

Definition at line 73 of file my_nr.h.

References basis, i, index, log(), MATH__, std::sqrt(), and T.

◆ buf_minus()

Vector<T> buf_minus ( xlen  )

◆ buf_plus()

Vector<T> buf_plus ( xlen  )

◆ do_nothing()

template<typename T >
NAMESPACE_TBCI void do_nothing ( T  dummy)
inline

Definition at line 41 of file my_nr.h.

◆ INST()

INST ( template< typename T > class Vector friend T partial_del(T(*func)(const Vector< T > &, const Vector< T > &), const Vector< T > &, const Vector< T > &, int, T, T &);  ) const &

Variable Documentation

◆ err

const Vector<T> const Vector<T> const Vector<T> int T T& err
Initial value:
{
T errt ALIGN(MIN_ALIGN), fac, hh, ans(0)
#define MIN_ALIGN
Definition: basics.h:421
#define ALIGN(x)
Definition: basics.h:444
tm fac
Definition: f_matrix.h:1052
#define T
Definition: bdmatlib.cc:20

Definition at line 106 of file my_nr.h.

◆ h

const Vector<T> const Vector<T> const Vector<T> int T h

Definition at line 101 of file my_nr.h.

◆ mu

const Vector<T> const Vector<T> const Vector<T> int mu

Definition at line 101 of file my_nr.h.

◆ p

const Vector<T> const Vector<T> const Vector<T>& p

Definition at line 101 of file my_nr.h.

◆ x

const Vector<T> const Vector<T>& x

Definition at line 101 of file my_nr.h.

◆ xlen

int xlen = x.size()

Definition at line 109 of file my_nr.h.