/usr/share/doc/libblitz-doc/examples/nested.cpp is in libblitz-doc 1:0.10-3.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | // Nested heterogeneous arrays
#include <blitz/array.h>
BZ_USING_NAMESPACE(blitz)
int main()
{
Array<Array<int,1>,1> A(3);
A(0).resize(3);
A(0) = 0, 1, 2;
A(1).resize(5);
A(1) = 5, 7, 18, 2, 1;
BZ_USING_NAMESPACE(blitz::tensor);
A(2).resize(4);
A(2) = pow2(i+1);
cout << "A = " << A << endl;
// A = [ [ 0 1 2 ] [ 5 7 18 2 1 ] [ 1 4 9 16 ] ]
return 0;
}
|