STK++ 0.9.13
tutoAppliers.cpp File Reference
#include "STKpp.h"
Include dependency graph for tutoAppliers.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 4 of file tutoAppliers.cpp.

5{
6 CArray2X a(2, 5);
7 stk_cout << "a.randUnif() =\n" << a.randUnif();
8 stk_cout << "a.randGauss()=\n" << a.randGauss();
9 Law::Gamma law(1, 1.5);
10 stk_cout << "a.rand(law) =\n" << a.rand(law);
11 stk_cout << "a.setValue(1)=\n" << a.setValue(1);
12 stk_cout << "a+=2 =\n" << (a+=2);
13 stk_cout << "a*=2 =\n" << (a*=2);
14 stk_cout << "a/=2 =\n" << (a/=2);
15 stk_cout << "a-=2 =\n" << (a-=2);
16 return 0;
17}
#define stk_cout
Standard stk output stream.
A CArray is a two dimensional array with a continuous storage like a C-array.
Definition STK_CArray.h:130
Gamma distribution law.

References STK::ArrayBase< Derived >::rand(), STK::ArrayBase< Derived >::randGauss(), STK::ArrayBase< Derived >::randUnif(), STK::ArrayBase< Derived >::setValue(), and stk_cout.