Пример #1
0
 /// Copy constructor
 array_view(array_view const & X): BaseType(X.indexmap(),X.storage()) {}
Пример #2
0
 array_view<V, sizeof...(I), Opt,indexmaps::mem_layout::c_order(sizeof...(I))> reinterpret_array_view (array_view<V,R,Opt,To,B> const & a, I ... index) { 
  if (!has_contiguous_data(a)) TRIQS_RUNTIME_ERROR << "reinterpretation failure : data of the view are not contiguous";
  return { {make_shape(index...)}, a.storage() };
 }
Пример #3
0
 /// Copy constructor
 array_view(array_view const& X) : IMPL_TYPE(X.indexmap(), X.storage()) {}