コード例 #1
0
ファイル: array.hpp プロジェクト: boujnah-mourad/TRIQS
 /// Copy constructor
 array_view(array_view const & X): BaseType(X.indexmap(),X.storage()) {}
コード例 #2
0
ファイル: reinterpret_view.cpp プロジェクト: EBRUDU1/triqs
 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
ファイル: array.hpp プロジェクト: cyrilmartins/triqs
 /// Copy constructor
 array_view(array_view const& X) : IMPL_TYPE(X.indexmap(), X.storage()) {}