Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > 6ba95eb068aab5480bfe9a9a0d0fa03c > files > 180

blitz-devel-0.9-13.fc13.x86_64.rpm

#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;
}