MCPcopy Create free account
hub / github.com/coin-or/CppAD / a1

Function a1

example/multi_thread/pthread/a11c_pthread.cpp:46–51  ·  view source on GitHub ↗

Beginning of Example A.1.1.1c of OpenMP 2.5 standard document ---------

Source from the content-addressed store, hash-verified

44namespace {
45 // Beginning of Example A.1.1.1c of OpenMP 2.5 standard document ---------
46 void a1(int n, float *a, float *b)
47 { int i;
48 for(i = 1; i < n; i++)
49 b[i] = (a[i] + a[i-1]) / 2.0f;
50 return;
51 }
52 // End of Example A.1.1.1c of OpenMP 2.5 standard document ---------------
53 struct start_arg { int n; float* a; float* b; };
54 void* start_routine(void* arg_vptr)

Callers 1

start_routineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected