#include "triqs/clef.hpp" #include "triqs/clef/adapters/vector.hpp" #include "triqs/clef/adapters/math.hpp" #include namespace tql = triqs::clef; int main() { int N = 10; double pi = std::acos(-1); std::vector V(N); // automatic assignment of vector and use of make_expr math function tql::placeholder <0> k_; tql::make_expr(V) [k_] << cos( (2* pi* k_)/ N ); // check result... for (size_t u=0; u