1 #ifndef MEDUSA_BITS_OPERATORS_RAGGEDSHAPESTORAGE_HPP_
2 #define MEDUSA_BITS_OPERATORS_RAGGEDSHAPESTORAGE_HPP_
18 template <
typename vec_t,
typename OpFamilies>
20 domain_size_ = support_sizes.size();
21 support_sizes_ = support_sizes;
23 support_starts_.resize(domain_size_, 0);
24 for (
int i = 1; i < domain_size_; ++i) {
25 support_starts_[i] = support_starts_[i-1] + support_sizes_[i-1];
27 total_size_ = support_starts_[domain_size_-1] + support_sizes_[domain_size_-1];
30 support_.resize(total_size_, -1);
31 resize_internal::resize_storage_<OpFamilies, num_operators>::resize(
32 shapes_, total_size_);
37 #endif // MEDUSA_BITS_OPERATORS_RAGGEDSHAPESTORAGE_HPP_