This commit is contained in:
Christian Zimmermann 2018-12-23 19:33:01 +01:00
parent d5a1422f34
commit 675b0dd9f0
2 changed files with 6 additions and 3 deletions

View file

@ -35,6 +35,9 @@ namespace MultiArrayTools
typedef MultiArrayBase<T,SRanges...> MAB; typedef MultiArrayBase<T,SRanges...> MAB;
typedef ContainerIndex<T,typename SRanges::IndexType...> IndexType; typedef ContainerIndex<T,typename SRanges::IndexType...> IndexType;
using MultiArrayBase<T,SRanges...>::operator[];
using MutableMultiArrayBase<T,SRanges...>::operator[];
DEFAULT_MEMBERS(MultiArray); DEFAULT_MEMBERS(MultiArray);
MultiArray(const std::shared_ptr<SRanges>&... ranges); MultiArray(const std::shared_ptr<SRanges>&... ranges);
MultiArray(const std::shared_ptr<SRanges>&... ranges, const T& val); MultiArray(const std::shared_ptr<SRanges>&... ranges, const T& val);

View file

@ -35,9 +35,9 @@ namespace MultiArrayTools
SubIndex(const std::shared_ptr<RangeType>& range); SubIndex(const std::shared_ptr<RangeType>& range);
static constexpr IndexType sType() { return typename Index::sType(); } static constexpr IndexType sType() { return IndexType::SINGLE; }
static constexpr size_t totalDim() { return typename Index::totalDim(); } static constexpr size_t totalDim() { return 1; }
static constexpr size_t sDim() { return typename Index::sDim(); } static constexpr size_t sDim() { return 1; }
static constexpr SpaceType STYPE = Index::STYPE; static constexpr SpaceType STYPE = Index::STYPE;