/usr/share/doc/libblitz-doc/examples/convolve.cpp is in libblitz-doc 1:0.10-3.2.
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 | #include <blitz/array.h>
#include <blitz/array/convolve.h>
using namespace blitz;
int main()
{
Array<float,1> B(Range(-2,+2));
Array<float,1> C(Range(10,15));
B = 1, 0, 2, 5, 3;
C = 10, 2, 4, 1, 7, 2;
Array<float,1> A = convolve(B,C);
cout << "A has domain " << A.lbound(0) << "..." << A.ubound(0) << endl
<< A << endl;
return 0;
}
|