Sophie

Sophie

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

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

/*****************************************************************************
 * rangexpr.cpp        Blitz++ range expression example
 *****************************************************************************/

#include <blitz/vector-et.h>

BZ_USING_NAMESPACE(blitz)

#ifndef M_PI
 #define M_PI   3.14159265358979323846
#endif

int main()
{
    Vector<float> x = cos(Range(0,7) * (2.0 * M_PI / 8));

    cout << x << endl;

    return 0;
}