예제 #1
0
파일: matrix.hpp 프로젝트: Titan-C/triqs
 /// Build from anything that has an indexmap and a storage compatible with this class
 template <typename ISP> matrix_view(const ISP& X) : IMPL_TYPE(X.indexmap(), X.storage()) {}
예제 #2
0
파일: matrix.hpp 프로젝트: pradhanphy/TRIQS
 /// Build from anything that has an indexmap and a storage compatible with this class
 template<typename ISP> matrix_view(const ISP & X): impl_type(X.indexmap(),X.storage()) {}
예제 #3
0
 /// Build from anything that has an indexmap and a storage compatible with this class
 template<typename ISP> array_view(const ISP & X): BaseType(X.indexmap(),X.storage()) {}
예제 #4
0
 /// Build from anything that has an indexmap and a storage compatible with this class
 template <typename ISP> array_view(const ISP& X) : IMPL_TYPE(X.indexmap(), X.storage()) {
  // to be activated
  static_assert(IsConst || (!ISP::is_const), "Cannot construct a non const view from a const one !");
 }