ROOT  6.06/09
Reference Guide
Macros | Enumerations | Functions | Variables
main.cpp File Reference
#include <Vc/Vc>
#include <iostream>
#include <iomanip>
#include <cmath>
#include "../tsc.h"
#include <Vc/common/macros.h>
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Macros

#define USE_SCALAR_SINCOS
 Finite difference method example. More...
 

Enumerations

enum  { N = 10240000, PrintStep = 1000000 }
 

Functions

static float fu (float x)
 
static float dfu (float x)
 
static Vc::float_v fu (Vc::float_v::AsArg x)
 
static Vc::float_v dfu (Vc::float_v::AsArg x)
 
void printResults ()
 
int main ()
 

Variables

static const float epsilon = 1e-7f
 
static const float lower = 0.f
 
static const float upper = 40000.f
 
static const float h = (upper - lower) / N
 
Vc::Memory< float_v, Nx_points
 
Vc::Memory< float_v, Ny_points
 
float *VC_RESTRICT dy_points
 

Macro Definition Documentation

#define USE_SCALAR_SINCOS

Finite difference method example.

We calculate central differences for a given function and compare it to the analytical solution.

Definition at line 40 of file main.cpp.

Enumeration Type Documentation

anonymous enum
Enumerator
PrintStep 

Definition at line 42 of file main.cpp.

Function Documentation

static float dfu ( float  x)
inlinestatic

Definition at line 54 of file main.cpp.

Referenced by printResults().

static Vc::float_v dfu ( Vc::float_v::AsArg  x)
inlinestatic

Definition at line 68 of file main.cpp.

static float fu ( float  x)
inlinestatic
static Vc::float_v fu ( Vc::float_v::AsArg  x)
inlinestatic

Definition at line 56 of file main.cpp.

int main ( )

Definition at line 113 of file main.cpp.

void printResults ( )

Definition at line 89 of file main.cpp.

Referenced by main().

Variable Documentation

float* VC_RESTRICT dy_points

Definition at line 87 of file main.cpp.

Referenced by main(), and printResults().

const float epsilon = 1e-7f
static

Definition at line 47 of file main.cpp.

Referenced by printResults().

const float h = (upper - lower) / N
static

Definition at line 50 of file main.cpp.

Referenced by main(), Baker::setSize(), and ProgressWriter::setValue().

const float lower = 0.f
static
const float upper = 40000.f
static
Vc::Memory<float_v, N> x_points

Definition at line 85 of file main.cpp.

Vc::Memory<float_v, N> y_points

Definition at line 86 of file main.cpp.