#include using triqs::arrays::array; using triqs::arrays::array_view; using triqs::arrays::range; int main() { array A(3, 3); A() = 2.5; std::cout << A << std::endl; array_view B = A(1, range()); // select the first line of the matrix std::cout << "B = " << B << std::endl; B(0) = 1; std::cout << "A = " << A << std::endl; }