little change
This commit is contained in:
parent
062f9619d0
commit
3635cf5091
2 changed files with 15 additions and 13 deletions
|
@ -188,8 +188,8 @@ namespace MultiArrayTools
|
||||||
MultiArrayContraction<T,ContractOperation,Range2,MultiArrayOperationRoot<T,Range>,MAOps...>
|
MultiArrayContraction<T,ContractOperation,Range2,MultiArrayOperationRoot<T,Range>,MAOps...>
|
||||||
MultiArrayOperationRoot<T,Range>::contract(const ContractOperation& cop,
|
MultiArrayOperationRoot<T,Range>::contract(const ContractOperation& cop,
|
||||||
const std::string& indexName,
|
const std::string& indexName,
|
||||||
const typename Range2::IndexType& begin,
|
size_t begin,
|
||||||
const typename Range2::IndexType& end,
|
size_t end,
|
||||||
const MAOps&... mao) const
|
const MAOps&... mao) const
|
||||||
{
|
{
|
||||||
//typename Range2::IndexType ind;
|
//typename Range2::IndexType ind;
|
||||||
|
@ -465,8 +465,8 @@ namespace MultiArrayTools
|
||||||
MultiArrayContraction<T,ContractOperation,Range2,ConstMultiArrayOperationRoot<T,Range>,MAOps...>
|
MultiArrayContraction<T,ContractOperation,Range2,ConstMultiArrayOperationRoot<T,Range>,MAOps...>
|
||||||
ConstMultiArrayOperationRoot<T,Range>::contract(const ContractOperation& cop,
|
ConstMultiArrayOperationRoot<T,Range>::contract(const ContractOperation& cop,
|
||||||
const std::string& indexName,
|
const std::string& indexName,
|
||||||
const typename Range2::IndexType& begin,
|
size_t begin,
|
||||||
const typename Range2::IndexType& end,
|
size_t end,
|
||||||
const MAOps&... mao) const
|
const MAOps&... mao) const
|
||||||
{
|
{
|
||||||
typename Range2::IndexType* ind = dynamic_cast<typename Range2::IndexType*>( mIndex.getLinked(indexName) );
|
typename Range2::IndexType* ind = dynamic_cast<typename Range2::IndexType*>( mIndex.getLinked(indexName) );
|
||||||
|
@ -767,13 +767,15 @@ namespace MultiArrayTools
|
||||||
MultiArrayContraction<T,ContractOperation,Range,MAOps...>::
|
MultiArrayContraction<T,ContractOperation,Range,MAOps...>::
|
||||||
MultiArrayContraction(const ContractOperation& cop,
|
MultiArrayContraction(const ContractOperation& cop,
|
||||||
const typename Range::IndexType& runIndex,
|
const typename Range::IndexType& runIndex,
|
||||||
const typename Range::IndexType& beginIndex,
|
size_t begin,
|
||||||
const typename Range::IndexType& endIndex,
|
size_t end,
|
||||||
const MAOps&... mao) :
|
const MAOps&... mao) :
|
||||||
MultiArrayOperation<T,ContractOperation,MAOps...>(cop, mao...),
|
MultiArrayOperation<T,ContractOperation,MAOps...>(cop, mao...),
|
||||||
mBeginIndex(beginIndex), mEndIndex(endIndex),
|
mBeginIndex(runIndex), mEndIndex(runIndex),
|
||||||
mRunIndex(runIndex)
|
mRunIndex(runIndex)
|
||||||
{
|
{
|
||||||
|
mBeginIndex.setPos(begin);
|
||||||
|
mEndIndex.setPos(end);
|
||||||
MAO::linkIndicesTo(&mRunIndex);
|
MAO::linkIndicesTo(&mRunIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -82,8 +82,8 @@ namespace MultiArrayTools
|
||||||
template <class Range2, class ContractOperation, class... MAOps>
|
template <class Range2, class ContractOperation, class... MAOps>
|
||||||
MultiArrayContraction<T,ContractOperation,Range2,MultiArrayOperationRoot<T,Range>, MAOps...>
|
MultiArrayContraction<T,ContractOperation,Range2,MultiArrayOperationRoot<T,Range>, MAOps...>
|
||||||
contract(const ContractOperation& cop, const std::string& indexName,
|
contract(const ContractOperation& cop, const std::string& indexName,
|
||||||
const typename Range2::IndexType& begin,
|
size_t begin,
|
||||||
const typename Range2::IndexType& end,
|
size_t end,
|
||||||
const MAOps&... mao) const;
|
const MAOps&... mao) const;
|
||||||
|
|
||||||
|
|
||||||
|
@ -181,8 +181,8 @@ namespace MultiArrayTools
|
||||||
template <class Range2, class ContractOperation, class... MAOps>
|
template <class Range2, class ContractOperation, class... MAOps>
|
||||||
MultiArrayContraction<T,ContractOperation,Range2,ConstMultiArrayOperationRoot<T,Range>, MAOps...>
|
MultiArrayContraction<T,ContractOperation,Range2,ConstMultiArrayOperationRoot<T,Range>, MAOps...>
|
||||||
contract(const ContractOperation& cop, const std::string& indexName,
|
contract(const ContractOperation& cop, const std::string& indexName,
|
||||||
const typename Range2::IndexType& begin,
|
size_t begin,
|
||||||
const typename Range2::IndexType& end,
|
size_t end,
|
||||||
const MAOps&... mao) const;
|
const MAOps&... mao) const;
|
||||||
|
|
||||||
template <class MAOp>
|
template <class MAOp>
|
||||||
|
@ -310,8 +310,8 @@ namespace MultiArrayTools
|
||||||
|
|
||||||
MultiArrayContraction(const ContractOperation& cop,
|
MultiArrayContraction(const ContractOperation& cop,
|
||||||
const typename Range::IndexType& runIndex,
|
const typename Range::IndexType& runIndex,
|
||||||
const typename Range::IndexType& beginIndex,
|
size_t begin,
|
||||||
const typename Range::IndexType& endIndex,
|
size_t end,
|
||||||
const MAOps&... mao);
|
const MAOps&... mao);
|
||||||
|
|
||||||
virtual const T& get() const override;
|
virtual const T& get() const override;
|
||||||
|
|
Loading…
Reference in a new issue