示例#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()) {}