rangexpr.C 275 B

1234567891011121314151617
  1. // Daniel Llorens - 2015
  2. // Adapted from blitz++/examples/rangexpr.cpp
  3. #include "ra/ra-operators.H"
  4. #include "ra/test.H"
  5. using std::cout; using std::endl;
  6. int main()
  7. {
  8. ra::Owned<float, 1> x = cos(ra::jvec(8) * (2.0 * PI / 8));
  9. cout << x << endl;
  10. return 0;
  11. }