Memosa-FVM  0.2
testUQTK.cpp File Reference
#include <string>
#include "PC.h"
Include dependency graph for testUQTK.cpp:

Go to the source code of this file.

Typedefs

typedef PC< 3, 2 > PCType
 

Functions

int main (int argc, char *argv[])
 

Typedef Documentation

typedef PC<3,2> PCType

Definition at line 12 of file testUQTK.cpp.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 14 of file testUQTK.cpp.

References PC< ORDER, DIM >::_data, and stdDev().

15 {
16  PCType a;
17  a = 0.1, 0.01;
18 
19  PCType b = a*a;
20  PCType c = a+3;
21  PCType d = a*4;
22 
23 
24  cout << "mean value of a " << a._data[0] << endl;
25  cout << "std dev of a " << stdDev(a) << endl;
26 
27  cout << "mean value of b " << b._data[0] << endl;
28  cout << "std dev of b " << stdDev(b) << endl;
29 
30  cout << "mean value of c " << c._data[0] << endl;
31  cout << "std dev of c " << stdDev(c) << endl;
32 
33  cout << "mean value of d " << d._data[0] << endl;
34  cout << "std dev of d " << stdDev(d) << endl;
35 
36  return 0;
37 }
Definition: PC.h:61
double stdDev(const PC< ORDER, DIM > &a)
Definition: PC.h:363
double _data[N]
Definition: PC.h:293