fix: forgot pifor in subrange
This commit is contained in:
parent
8237fba438
commit
8048c573fa
1 changed files with 11 additions and 0 deletions
|
@ -82,6 +82,10 @@ namespace MultiArrayTools
|
||||||
auto iforh(size_t step, Expr ex) const
|
auto iforh(size_t step, Expr ex) const
|
||||||
-> For<SubIndex<Index>,SubExpr<Index,Expr>,ForType::HIDDEN>;
|
-> For<SubIndex<Index>,SubExpr<Index,Expr>,ForType::HIDDEN>;
|
||||||
|
|
||||||
|
template <class Expr>
|
||||||
|
auto pifor(size_t step, Expr ex) const
|
||||||
|
-> decltype(ifor(step, ex)); // no multithreading here (check!!)
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<RangeType> mExplicitRangePtr;
|
std::shared_ptr<RangeType> mExplicitRangePtr;
|
||||||
//const U* mMetaPtr;
|
//const U* mMetaPtr;
|
||||||
|
@ -332,6 +336,13 @@ namespace MultiArrayTools
|
||||||
&mExplicitRangePtr->subset(), ex ) );
|
&mExplicitRangePtr->subset(), ex ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <class Index>
|
||||||
|
template <class Expr>
|
||||||
|
auto SubIndex<Index>::pifor(size_t step, Expr ex) const
|
||||||
|
-> decltype(ifor(step, ex))
|
||||||
|
{
|
||||||
|
return ifor(step, ex);
|
||||||
|
}
|
||||||
|
|
||||||
/************************
|
/************************
|
||||||
* SubRangeFactory *
|
* SubRangeFactory *
|
||||||
|
|
Loading…
Reference in a new issue