#include using namespace triqs::arrays; int main() { array A(10,2,2); A() = 0; A(4,range(),range()) = 1; A(5,range(),range()) = 2; matrix_view M1 = A(4,range(),range()); matrix_view M2 = A(5,range(),range()); std::cout << M1 << std::endl; std::cout << M2 << std::endl; std::cout << M1.data_start() << std::endl; std::cout << M2.data_start() << std::endl; M1 = M2; //M1 = M1*M2; std::cout << M1 << std::endl; std::cout << M2 << std::endl; }