1234567891011121314151617 |
- // -*- mode: c++; coding: utf-8 -*-
- // Adapted from blitz++/examples/rangexpr.cpp
- // Daniel Llorens - 2015
- #include "ra/ra.hh"
- #include <iostream>
- using std::cout, std::endl, ra::PI;
- int main()
- {
- ra::Big<float, 1> x = cos(ra::iota(8) * (2.0 * PI / 8));
- cout << x << endl;
- return 0;
- }
|