Debian Codegraph @

doc/examples/output.cpp

raw
1 #include <blitz/array.h>
2
3 using namespace blitz;
4
5 int main()
6 {
7 Array<int,2> A(4,5,FortranArray<2>());
8 firstIndex i;
9 secondIndex j;
10 A = 10*i + j;
11
12 cout << "A = " << A << endl;
13
14 Array<float,1> B(20);
15 B = exp(-i/100.);
16
17 cout << "B = " << endl << B << endl;
18
19 return 0;
20 }
21