TBCI Numerical high perf. C++ Library 2.8.0
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)
#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,
j )
Value:
((i==j)?1:0)
int i
Definition LM_fit.h:71

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  )

References NTAB.

◆ 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, basis_trafo(), i, index, log(), MATH__, sqrt(), and T.

Referenced by basis_trafo().

◆ buf_minus()

Vector< T > buf_minus ( xlen )

References BIG, buf_minus(), buf_plus(), CON, CON2, err, fac, h, i, MATH__, mu, NTAB, p, REGISTER, STD__, x, and xlen.

◆ buf_plus()

Vector< T > buf_plus ( xlen )

References xlen.

◆ do_nothing()

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

Definition at line 41 of file my_nr.h.

References T.

◆ 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 &

References T.

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 ALIGN(x)
Definition basics.h:444
#define MIN_ALIGN
Definition basics.h:421
#define T
Definition bdmatlib.cc:20
tm fac
Definition f_matrix.h:1052

Definition at line 103 of file my_nr.h.

◆ h

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

Definition at line 103 of file my_nr.h.

◆ mu

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

Definition at line 103 of file my_nr.h.

◆ p

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

Definition at line 102 of file my_nr.h.

◆ x

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

Definition at line 102 of file my_nr.h.

◆ xlen

int xlen = x.size()

Definition at line 109 of file my_nr.h.