Nektar++
Namespaces | Macros | Functions
Vmath.cpp File Reference
#include <LibUtilities/BasicUtils/Vmath.hpp>

Go to the source code of this file.

Namespaces

namespace  Vmath
 

Macros

#define IM1   2147483563
 
#define IM2   2147483399
 
#define AM   (1.0 / IM1)
 
#define IMM1   (IM1 - 1)
 
#define IA1   40014
 
#define IA2   40692
 
#define IQ1   53668
 
#define IQ2   52774
 
#define IR1   12211
 
#define IR2   3791
 
#define NTAB   32
 
#define NDIV   (1 + IMM1 / NTAB)
 
#define EPS   1.2e-7
 
#define RNMX   (1.0 - EPS)
 

Functions

template<class T >
Vmath::ran2 (long *idum)
 Generates a number from ~Normal(0,1) More...
 
template Nektar::NekDouble Vmath::ran2 (long *idum)
 
template<class T >
void Vmath::FillWhiteNoise (int n, const T eps, T *x, const int incx, int outseed)
 Fills a vector with white noise. More...
 
template void Vmath::FillWhiteNoise (int n, const Nektar::NekDouble eps, Nektar::NekDouble *x, const int incx, int outseed)
 
template void Vmath::FillWhiteNoise (int n, const Nektar::NekSingle eps, Nektar::NekSingle *x, const int incx, int outseed)
 

Macro Definition Documentation

◆ AM

#define AM   (1.0 / IM1)

Definition at line 42 of file Vmath.cpp.

◆ EPS

#define EPS   1.2e-7

Definition at line 52 of file Vmath.cpp.

◆ IA1

#define IA1   40014

Definition at line 44 of file Vmath.cpp.

◆ IA2

#define IA2   40692

Definition at line 45 of file Vmath.cpp.

◆ IM1

#define IM1   2147483563

Definition at line 40 of file Vmath.cpp.

◆ IM2

#define IM2   2147483399

Definition at line 41 of file Vmath.cpp.

◆ IMM1

#define IMM1   (IM1 - 1)

Definition at line 43 of file Vmath.cpp.

◆ IQ1

#define IQ1   53668

Definition at line 46 of file Vmath.cpp.

◆ IQ2

#define IQ2   52774

Definition at line 47 of file Vmath.cpp.

◆ IR1

#define IR1   12211

Definition at line 48 of file Vmath.cpp.

◆ IR2

#define IR2   3791

Definition at line 49 of file Vmath.cpp.

◆ NDIV

#define NDIV   (1 + IMM1 / NTAB)

Definition at line 51 of file Vmath.cpp.

◆ NTAB

#define NTAB   32

Definition at line 50 of file Vmath.cpp.

◆ RNMX

#define RNMX   (1.0 - EPS)

Definition at line 53 of file Vmath.cpp.